netutils/webclient: Fixed socket descriptor leak.
This commit is contained in:
parent
e86faa6966
commit
a12f9d967c
@ -822,6 +822,7 @@ int webclient_perform(FAR struct webclient_context *ctx)
|
|||||||
if (ret == -1)
|
if (ret == -1)
|
||||||
{
|
{
|
||||||
ret = -errno;
|
ret = -errno;
|
||||||
|
close(conn.sockfd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user