Re: [PATCH 2/3] LXC: fix memory leak in lxcContainerSetupExtraMounts

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

 



On 2012年06月15日 15:41, Gao feng wrote:
kill the "return 0;" code, it will cause memory leak.

Signed-off-by: Gao feng<gaofeng@xxxxxxxxxxxxxx>
---
  src/lxc/lxc_container.c |    1 -
  1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c
index 87de463..a54c385 100644
--- a/src/lxc/lxc_container.c
+++ b/src/lxc/lxc_container.c
@@ -1423,7 +1423,6 @@ static int lxcContainerSetupExtraMounts(virDomainDefPtr vmDef,
          goto cleanup;

      VIR_DEBUG("Mounting completed");
-    return 0;

      ret = 0;


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]