From: John Ferlan Date: Mon, 4 Feb 2013 14:58:38 +0000 (-0500) Subject: vport_profile_conf: Resolve memory leak found by Valgrind X-Git-Tag: v1.0.3-rc1~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbd5dc09e8dba792933355540c1e01286abd275b;p=thirdparty%2Flibvirt.git vport_profile_conf: Resolve memory leak found by Valgrind The 'virtPortInterfaceID' was not VIR_FREE()'d --- diff --git a/src/conf/netdev_vport_profile_conf.c b/src/conf/netdev_vport_profile_conf.c index 701e17e07c..47f51f9592 100644 --- a/src/conf/netdev_vport_profile_conf.c +++ b/src/conf/netdev_vport_profile_conf.c @@ -198,6 +198,7 @@ cleanup: VIR_FREE(virtPortInstanceID); VIR_FREE(virtPortProfileID); VIR_FREE(virtPortType); + VIR_FREE(virtPortInterfaceID); return virtPort;