[gimp] CID 225792 Resource leak in script-fu-server.c
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] CID 225792 Resource leak in script-fu-server.c
- Date: Thu, 24 Oct 2019 16:06:38 +0000 (UTC)
commit 4d8a61af34147ababf8ffdec7783b6aebf17eaf0
Author: Sabri Ünal <libreajans gmail com>
Date: Thu Oct 24 15:13:35 2019 +0000
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.
(cherry picked from commit 1ce1b0eebe95f64815083c5ce93e36f59a27fa34)
plug-ins/script-fu/script-fu-server.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/plug-ins/script-fu/script-fu-server.c b/plug-ins/script-fu/script-fu-server.c
index d5051e8e24..1a3b5e715d 100644
--- a/plug-ins/script-fu/script-fu-server.c
+++ b/plug-ins/script-fu/script-fu-server.c
@@ -489,6 +489,7 @@ server_start (const gchar *listen_ip,
if (listen (server_socks[sockno], 5) < 0)
{
print_socket_api_error ("listen");
+ freeaddrinfo (ai);
return;
}
}
@@ -536,6 +537,7 @@ server_start (const gchar *listen_ip,
server_progress_uninstall (progress);
+ freeaddrinfo (ai);
server_quit ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]