[libvirt] [PATCH] nwfilter: fix a memory leak

Stefan Berger stefanb at linux.vnet.ibm.com
Fri Aug 13 18:28:19 UTC 2010


  Fixing a memory leak.

Signed-off-by: Stefan Berger <stefanb at us.ibm.com>

---
  src/nwfilter/nwfilter_ebiptables_driver.c |    3 +++
  1 file changed, 3 insertions(+)

Index: libvirt-acl/src/nwfilter/nwfilter_ebiptables_driver.c
===================================================================
--- libvirt-acl.orig/src/nwfilter/nwfilter_ebiptables_driver.c
+++ libvirt-acl/src/nwfilter/nwfilter_ebiptables_driver.c
@@ -2973,6 +2973,9 @@ static int ebtablesCleanAll(const char *
      ebtablesRemoveTmpRootChain(&buf, 0, ifname);

      ebiptablesExecCLI(&buf, &cli_status);
+
+    virBufferFreeAndReset(&buf);
+
      return 0;
  }




More information about the libvir-list mailing list