mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
virnetdev: Resolve Coverity RESOURCE_LEAK
virFileReadAll returns a chunk of memory that needs to be free'd when done
This commit is contained in:
parent
f099726c46
commit
9babbaa5fe
@ -2200,6 +2200,7 @@ static int virNetDevGetMcastList(const char *ifname,
|
||||
|
||||
ret = 0;
|
||||
cleanup:
|
||||
VIR_FREE(buf);
|
||||
VIR_FREE(entry);
|
||||
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user