CID 225792 Resource leak in script-fu-server.c

Variable ai and ai_curr going out of scope at line 496.
Variable ai going out of scope at line 545.

Revealed by Coverity Scan.
This commit is contained in:
Sabri Ünal
2019-10-24 15:13:35 +00:00
committed by Jehan
parent a551207638
commit 1ce1b0eebe

View File

@ -494,6 +494,7 @@ server_start (const gchar *listen_ip,
if (listen (server_socks[sockno], 5) < 0)
{
print_socket_api_error ("listen");
freeaddrinfo (ai);
return;
}
}
@ -541,6 +542,7 @@ server_start (const gchar *listen_ip,
server_progress_uninstall (progress);
freeaddrinfo (ai);
server_quit ();
}