ASPLes / nopoll

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

Memory leak observed in nopoll_conn_send_frame #52

Closed selvamKrish closed 1 year ago

selvamKrish commented 6 years ago

Memory allocated for send_buffer https://github.com/ASPLes/nopoll/blob/master/src/nopoll_conn.c#L4428 is not getting freed in error case https://github.com/ASPLes/nopoll/blob/master/src/nopoll_conn.c#L4496.

francisbrosnan commented 1 year ago

Memory pointed by report is stack allocated (not in the heap). It cannot freed, so nothing has to be done in error case. Best Regards