[Xfce4-commits] [xfce/xfce4-session] 01/06: fix coverity 178990 Resource leak
noreply at xfce.org
noreply at xfce.org
Thu May 4 14:08:23 CEST 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfce4-session.
commit 63233895daba2eac6243a456ee9afcd49a7b09d6
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Thu May 4 14:57:05 2017 +0300
fix coverity 178990 Resource leak
---
xfce4-session/xfsm-dns.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/xfce4-session/xfsm-dns.c b/xfce4-session/xfsm-dns.c
index abb9cef..3363b9f 100644
--- a/xfce4-session/xfsm-dns.c
+++ b/xfce4-session/xfsm-dns.c
@@ -105,7 +105,12 @@ check_for_dns (void)
return FALSE;
if (g_ascii_strncasecmp (result->ai_canonname, hostname, 0) != 0)
- return FALSE;
+ {
+ freeaddrinfo (result);
+ return FALSE;
+ }
+
+ freeaddrinfo (result);
#else
#ifdef HAVE_GETHOSTBYNAME
if (gethostbyname (hostname) == NULL)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list