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:
@ -494,6 +494,7 @@ server_start (const gchar *listen_ip,
|
|||||||
if (listen (server_socks[sockno], 5) < 0)
|
if (listen (server_socks[sockno], 5) < 0)
|
||||||
{
|
{
|
||||||
print_socket_api_error ("listen");
|
print_socket_api_error ("listen");
|
||||||
|
freeaddrinfo (ai);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -541,6 +542,7 @@ server_start (const gchar *listen_ip,
|
|||||||
|
|
||||||
server_progress_uninstall (progress);
|
server_progress_uninstall (progress);
|
||||||
|
|
||||||
|
freeaddrinfo (ai);
|
||||||
server_quit ();
|
server_quit ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user