Re: [PATCH 04/13] vport_profile_conf: Resolve memory leak found by Valgrind

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2013年02月07日 05:35, John Ferlan wrote:
The 'virtPortInterfaceID' was not VIR_FREE()'d
---
  src/conf/netdev_vport_profile_conf.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/src/conf/netdev_vport_profile_conf.c b/src/conf/netdev_vport_profile_conf.c
index 701e17e..47f51f9 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;


ACK

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]