ASPLes / nopoll

OpenSource WebSocket toolkit
http://www.aspl.es/nopoll
GNU Lesser General Public License v2.1
126 stars 73 forks source link

noPollCtx will not be freeed when winsock initialization failed #29

Closed jackyzy823 closed 7 years ago

jackyzy823 commented 7 years ago

https://github.com/ASPLes/nopoll/blob/84185610cce6b0aec52e0c7e490eb066735a66bd/src/nopoll_ctx.c#L75

#if defined(NOPOLL_OS_WIN32)
    if (! nopoll_win32_init (result))
        return NULL;
#endif

it just return NULL without free noPollCtx when winsock initialization failed

francisbrosnan commented 7 years ago

Thanks for taking your time and reporting!