mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-01 19:17:48 +08:00
Fix potential leak in socks client
PUBLISHED_FROM=2cb4449d2f36d59db2b0dc37c46b35de6a461810
This commit is contained in:
parent
598e96a0cc
commit
3b3ac48edd
@ -4209,6 +4209,7 @@ static void mg_socks_if_free(struct mg_iface *iface) {
|
|||||||
LOG(LL_DEBUG, ("%p", iface));
|
LOG(LL_DEBUG, ("%p", iface));
|
||||||
if (d != NULL) {
|
if (d != NULL) {
|
||||||
socks_if_disband(d);
|
socks_if_disband(d);
|
||||||
|
mbuf_free(&d->tmp);
|
||||||
MG_FREE(d->proxy_addr);
|
MG_FREE(d->proxy_addr);
|
||||||
MG_FREE(d);
|
MG_FREE(d);
|
||||||
iface->data = NULL;
|
iface->data = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user