Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak with disconnecting clients with libmicrohttpd #1

Open
klaxa opened this issue Aug 8, 2018 · 1 comment
Open

Memory leak with disconnecting clients with libmicrohttpd #1

klaxa opened this issue Aug 8, 2018 · 1 comment

Comments

@klaxa
Copy link
Owner

klaxa commented Aug 8, 2018

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.

@goliveok
Copy link

goliveok commented Apr 9, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants