projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9eaf9e
)
blockdev: Plug memory leak in drive_uninit()
author
Markus Armbruster
<armbru@redhat.com>
Tue, 8 Feb 2011 14:12:38 +0000
(15:12 +0100)
committer
Kevin Wolf
<kwolf@redhat.com>
Thu, 10 Feb 2011 12:24:28 +0000
(13:24 +0100)
Started leaking in commit
1dae12e6
.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c
patch
|
blob
|
history
diff --git
a/blockdev.c
b/blockdev.c
index ecfadc138fc34808d7492ac1a47eef964677a641..24d765806b4f628b16b217420fa2282a3de246eb 100644
(file)
--- 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);
}