mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
webclient_abort: Fix a resource leak for the tunneling case
This commit is contained in:
parent
be516e4c5e
commit
eece4a5ca0
1 changed files with 5 additions and 0 deletions
|
|
@ -2206,6 +2206,11 @@ void webclient_abort(FAR struct webclient_context *ctx)
|
|||
conn_close(ctx, conn);
|
||||
}
|
||||
|
||||
if (ws->tunnel != NULL)
|
||||
{
|
||||
webclient_abort(ws->tunnel);
|
||||
}
|
||||
|
||||
free_ws(ws);
|
||||
_SET_STATE(ctx, WEBCLIENT_CONTEXT_STATE_ABORTED);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue