From: John Ferlan Date: Wed, 29 Oct 2014 22:29:43 +0000 (-0400) Subject: virnetdev: Resolve Coverity RESOURCE_LEAK X-Git-Tag: v1.2.10-rc2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9babbaa5fe38a433cef759a930e49d8291f040a8;p=thirdparty%2Flibvirt.git virnetdev: Resolve Coverity RESOURCE_LEAK virFileReadAll returns a chunk of memory that needs to be free'd when done --- diff --git a/src/util/virnetdev.c b/src/util/virnetdev.c index 4fea4cb4ef..0c9c1f907d 100644 --- a/src/util/virnetdev.c +++ b/src/util/virnetdev.c @@ -2200,6 +2200,7 @@ static int virNetDevGetMcastList(const char *ifname, ret = 0; cleanup: + VIR_FREE(buf); VIR_FREE(entry); return ret;