-
- Downloads
Fix potential memory leak
- Got rid of ifdef _WIN32 stuff adn moved to plat_ files instead. - Also, check all calls to lws_zalloc, was potential failure on WIN32 - Made context destory enable to destroy a half inited context as well. This way I got get rid of some of the error handling complexity in libwebsocket_create_context - Added TODOs for some potential problems I see where things might be leaking and such
Showing
- lib/context.c 31 additions, 45 deletionslib/context.c
- lib/libwebsockets.c 26 additions, 12 deletionslib/libwebsockets.c
- lib/lws-plat-unix.c 17 additions, 0 deletionslib/lws-plat-unix.c
- lib/lws-plat-win.c 23 additions, 0 deletionslib/lws-plat-win.c
- lib/private-libwebsockets.h 2 additions, 0 deletionslib/private-libwebsockets.h
Loading
Please register or sign in to comment