This is an automated email from the ASF dual-hosted git repository.
masayuki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new a12f9d9 netutils/webclient: Fixed socket descriptor leak.
a12f9d9 is described below
commit a12f9d967c20ef0b256b2e3e7404f14a8d740702
Author: Atsunori Saito <[email protected]>
AuthorDate: Sun May 2 14:55:52 2021 +0900
netutils/webclient: Fixed socket descriptor leak.
---
netutils/webclient/webclient.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/netutils/webclient/webclient.c b/netutils/webclient/webclient.c
index 1379d8e..e8c50d7 100644
--- a/netutils/webclient/webclient.c
+++ b/netutils/webclient/webclient.c
@@ -822,6 +822,7 @@ int webclient_perform(FAR struct webclient_context *ctx)
if (ret == -1)
{
ret = -errno;
+ close(conn.sockfd);
}
}