Commit 122bca70 authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 60357 (Handle variable sfd going out of scope leaks the handle.)

parent b4c59b7a
......@@ -221,6 +221,8 @@ void* socket_udp_open(int type, const char* host, const char* port)
sid->type = type;
sid->port = atoi (port);
sid->fd = sfd;
} else {
close (sfd);
}
return sid;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment