提交 e5f1c196 编写于 作者: M Markus Armbruster 提交者: Justin M. Forbes

blockdev: Plug memory leak in drive_uninit()

Started leaking in commit 1dae12e6.
Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
上级 c1f1ffff
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册