]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
vport_profile_conf: Resolve memory leak found by Valgrind
authorJohn Ferlan <jferlan@redhat.com>
Mon, 4 Feb 2013 14:58:38 +0000 (09:58 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 7 Feb 2013 19:08:14 +0000 (14:08 -0500)
The 'virtPortInterfaceID' was not VIR_FREE()'d

src/conf/netdev_vport_profile_conf.c

index 701e17e07c54de19353f7080999ae06b1c945292..47f51f95923ed44a41888017be29a84003bd3ca4 100644 (file)
@@ -198,6 +198,7 @@ cleanup:
     VIR_FREE(virtPortInstanceID);
     VIR_FREE(virtPortProfileID);
     VIR_FREE(virtPortType);
+    VIR_FREE(virtPortInterfaceID);
 
     return virtPort;