klaxa / ffserver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memory leak with disconnecting clients with libmicrohttpd

klaxa opened this issue · comments

commented

The MHD_create_response_from_callback() function takes an argument for a freeing function that should clean up the closure/context of the callback that produces the response, however, in the current code-flow this gets called early enough to trip up another thread that tries to write to the client. In the current implementation this freeing is omitted, resulting in a memory leak.

hi bro i have problem compile :

root@te~/ffserver# make
rm -f *.o ffserver
cc -g -Wall -I/usr/include/x86_64-linux-gnu -lavformat -lavcodec -lavutil -lpthread -c segment.c
cc -g -Wall -I/usr/include/x86_64-linux-gnu -lavformat -lavcodec -lavutil -lpthread -c publisher.c
cc -g -Wall -I/usr/include/x86_64-linux-gnu -lavformat -lavcodec -lavutil -lpthread -c fileserver.c
cc -g -Wall -I/usr/include/x86_64-linux-gnu -lavformat -lavcodec -lavutil -lpthread -c lavfhttpd.c
cc -g -Wall -I/usr/include/x86_64-linux-gnu -lavformat -lavcodec -lavutil -I/usr/include/p11-kit-1 -lmicrohttpd -lpthread -c lmhttpd.c
cc -g -Wall -I/usr/include/x86_64-linux-gnu -lavformat -lavcodec -lavutil -I/usr/include/lua5.3 -llua5.3 -c configreader.c
make: *** No rule to make target 'ffserver.c', needed by 'ffserver'. Stop.

collect2: error: ld returned 1 exit status

ubuntu 18.04