F-Stack / f-stack

F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.

Home Page:http://www.f-stack.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible memory leak in the `ff_sendmsg` function.

freak82 opened this issue · comments

Hi there,

It seems to me that the conditionally allocated freebsd_cmsg is not freed in all code paths in this function.
If the linux2freebsd_msghdr or the sendit function calls fail they goto to the kern_fail but the freebsd_cmsg is not freed there.
It's freed only on the non-error code path.