netutils/webclient: Fixed socket descriptor leak.

This commit is contained in:
Atsunori Saito 2021-05-02 14:55:52 +09:00 committed by Masayuki Ishikawa
parent e86faa6966
commit a12f9d967c

View File

@ -822,6 +822,7 @@ int webclient_perform(FAR struct webclient_context *ctx)
if (ret == -1)
{
ret = -errno;
close(conn.sockfd);
}
}