Commit 3b3ac48e authored by Sergey Lyubka's avatar Sergey Lyubka Committed by Cesanta Bot

Fix potential leak in socks client

PUBLISHED_FROM=2cb4449d2f36d59db2b0dc37c46b35de6a461810
parent 598e96a0
......@@ -4209,6 +4209,7 @@ static void mg_socks_if_free(struct mg_iface *iface) {
LOG(LL_DEBUG, ("%p", iface));
if (d != NULL) {
socks_if_disband(d);
mbuf_free(&d->tmp);
MG_FREE(d->proxy_addr);
MG_FREE(d);
iface->data = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment