diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-02-08 15:12:38 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-02-10 13:24:28 +0100 |
commit | 2753d4a5fa44d980cc6a279f323a12ca8d172972 (patch) | |
tree | 82af24926e7fdfd866fceca281ff1ba7b4f8e50d /blockdev.c | |
parent | b9eaf9ecb15a9c69a592f386159163d5efc3b919 (diff) |
blockdev: Plug memory leak in drive_uninit()
Started leaking in commit 1dae12e6.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockdev.c')
-rw-r--r-- | blockdev.c | 1 |
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); } |