Patchwork [2/5] blockdev: don't leak id on removal

login
register
mail settings
Submitter Juan Quintela
Date Jan. 4, 2011, 2:33 p.m.
Message ID <9c1e085626625fbe872cf3eb523dcce573500701.1294150511.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/77479/
State New
Headers show

Comments

Juan Quintela - Jan. 4, 2011, 2:33 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 blockdev.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/blockdev.c b/blockdev.c
index d7add36..da619ad 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -115,6 +115,7 @@  void drive_uninit(DriveInfo *dinfo)
     qemu_opts_del(dinfo->opts);
     bdrv_delete(dinfo->bdrv);
     QTAILQ_REMOVE(&drives, dinfo, next);
+    qemu_free(dinfo->id);
     qemu_free(dinfo);
 }