virnetdev: Resolve Coverity RESOURCE_LEAK

virFileReadAll returns a chunk of memory that needs to be free'd when
done
This commit is contained in:
John Ferlan 2014-10-29 18:29:43 -04:00
parent f099726c46
commit 9babbaa5fe

View File

@ -2200,6 +2200,7 @@ static int virNetDevGetMcastList(const char *ifname,
ret = 0;
cleanup:
VIR_FREE(buf);
VIR_FREE(entry);
return ret;