aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-02-08 15:12:38 +0100
committerJustin M. Forbes <jforbes@redhat.com>2011-02-08 08:41:54 -0600
commite5f1c19665b3cf7ff33431c1c8c898177504dcd5 (patch)
tree70b03e16f1a6ac97d8be55c8498820c76aac36ca
parentc1f1ffff21c47622c91c7a19cc9ace588fb746b1 (diff)
blockdev: Plug memory leak in drive_uninit()
Started leaking in commit 1dae12e6. Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r--blockdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/blockdev.c b/blockdev.c
index ecfadc138f..24d765806b 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -182,6 +182,7 @@ static void drive_uninit(DriveInfo *dinfo)
{
qemu_opts_del(dinfo->opts);
bdrv_delete(dinfo->bdrv);
+ qemu_free(dinfo->id);
QTAILQ_REMOVE(&drives, dinfo, next);
qemu_free(dinfo);
}