xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: xen-devel@lists.xensource.com
Cc: george.dunlap@eu.citrix.com
Subject: [PATCH 2 of 3] xl: Call xlu_cfg_destroy in the pciattach and pcidetach
Date: Fri, 11 May 2012 15:12:00 +0100	[thread overview]
Message-ID: <25a5ebd0117f6b594eff.1336745520@kodo2> (raw)
In-Reply-To: <patchbomb.1336745518@kodo2>

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>

diff -r 66ee1a4de61a -r 25a5ebd0117f tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c	Fri May 11 14:45:30 2012 +0100
+++ b/tools/libxl/xl_cmdimpl.c	Fri May 11 14:49:22 2012 +0100
@@ -2277,7 +2277,9 @@ static void pcidetach(const char *dom, c
         libxl_device_pci_destroy(ctx, domid, &pcidev);
     else
         libxl_device_pci_remove(ctx, domid, &pcidev);
+
     libxl_device_pci_dispose(&pcidev);
+    xlu_cfg_destroy(config);
 }
 
 int main_pcidetach(int argc, char **argv)
@@ -2319,7 +2321,9 @@ static void pciattach(const char *dom, c
         exit(2);
     }
     libxl_device_pci_add(ctx, domid, &pcidev);
+
     libxl_device_pci_dispose(&pcidev);
+    xlu_cfg_destroy(config);
 }
 
 int main_pciattach(int argc, char **argv)

  parent reply	other threads:[~2012-05-11 14:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-11 14:11 [PATCH 0 of 3] xl: Some clean-up George Dunlap
2012-05-11 14:11 ` [PATCH 1 of 3] xl: Replace memset with libxl_device_pci_init George Dunlap
2012-05-11 14:12 ` George Dunlap [this message]
2012-05-11 14:12 ` [PATCH 3 of 3] xl: Call xlu_cfg_destroy in main_cpupoolcreate George Dunlap
2012-05-11 16:34 ` [PATCH 0 of 3] xl: Some clean-up Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=25a5ebd0117f6b594eff.1336745520@kodo2 \
    --to=george.dunlap@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).