webclient_abort: Fix a resource leak for the tunneling case
This commit is contained in:
parent
be516e4c5e
commit
eece4a5ca0
@ -2206,6 +2206,11 @@ void webclient_abort(FAR struct webclient_context *ctx)
|
|||||||
conn_close(ctx, conn);
|
conn_close(ctx, conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ws->tunnel != NULL)
|
||||||
|
{
|
||||||
|
webclient_abort(ws->tunnel);
|
||||||
|
}
|
||||||
|
|
||||||
free_ws(ws);
|
free_ws(ws);
|
||||||
_SET_STATE(ctx, WEBCLIENT_CONTEXT_STATE_ABORTED);
|
_SET_STATE(ctx, WEBCLIENT_CONTEXT_STATE_ABORTED);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user