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) | |
download | qemu-2753d4a5fa44d980cc6a279f323a12ca8d172972.zip qemu-2753d4a5fa44d980cc6a279f323a12ca8d172972.tar.gz qemu-2753d4a5fa44d980cc6a279f323a12ca8d172972.tar.bz2 |
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
@@ -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); } |