In the error path the 'ipaddr' wasn't VIR_FREE'd before jumping to cleanup Signed-off-by: John Ferlan <jfer...@redhat.com> --- src/network/bridge_driver.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c index 9491c51..4b3f07f 100644 --- a/src/network/bridge_driver.c +++ b/src/network/bridge_driver.c @@ -993,6 +993,7 @@ networkDnsmasqConfContents(virNetworkObjPtr network, "(as described in RFC1918/RFC3484/RFC4193)."), ipaddr, (int)version / 1000000, (int)(version % 1000000) / 1000); + VIR_FREE(ipaddr); goto cleanup; } virBufferAsprintf(&configbuf, "listen-address=%s\n", ipaddr); -- 1.9.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list