ffserver icon indicating copy to clipboard operation
ffserver copied to clipboard

Memory leak with disconnecting clients with libmicrohttpd

Open klaxa opened this issue 6 years ago • 1 comments

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.

klaxa avatar Aug 08 '18 14:08 klaxa

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

goliveok avatar Apr 09 '20 01:04 goliveok