render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
9119d9
From 92d09f6688890d87498c7cea28605a89c150638e Mon Sep 17 00:00:00 2001
9119d9
Message-Id: <92d09f6688890d87498c7cea28605a89c150638e@dist-git>
9119d9
From: John Ferlan <jferlan@redhat.com>
9119d9
Date: Mon, 3 Nov 2014 10:00:26 -0500
9119d9
Subject: [PATCH] virnetdev: Resolve Coverity RESOURCE_LEAK
9119d9
9119d9
https://bugzilla.redhat.com/show_bug.cgi?id=848199
9119d9
9119d9
virFileReadAll returns a chunk of memory that needs to be free'd when
9119d9
done
9119d9
9119d9
(cherry picked from commit 9babbaa5fe38a433cef759a930e49d8291f040a8)
9119d9
9119d9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
9119d9
---
9119d9
 src/util/virnetdev.c | 1 +
9119d9
 1 file changed, 1 insertion(+)
9119d9
9119d9
diff --git a/src/util/virnetdev.c b/src/util/virnetdev.c
9119d9
index e3f6bd0..0382d00 100644
9119d9
--- a/src/util/virnetdev.c
9119d9
+++ b/src/util/virnetdev.c
9119d9
@@ -2193,6 +2193,7 @@ static int virNetDevGetMcastList(const char *ifname,
9119d9
 
9119d9
     ret = 0;
9119d9
  cleanup:
9119d9
+    VIR_FREE(buf);
9119d9
     VIR_FREE(entry);
9119d9
 
9119d9
     return ret;
9119d9
-- 
9119d9
2.1.3
9119d9