提交 b58c86e1 编写于 作者: S Stefan Weil 提交者: Anthony Liguori

fsdev: Fix potential memory leak

This leak was reported by cppcheck.
Signed-off-by: NStefan Weil <sw@weilnetz.de>
Reviewed-by: NM. Mohan Kumar <mohan@in.ibm.com>
Message-id: 1371376960-18192-1-git-send-email-sw@weilnetz.de
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 edb5092c
......@@ -76,6 +76,8 @@ int qemu_fsdev_add(QemuOpts *opts)
if (fsle->fse.ops->parse_opts) {
if (fsle->fse.ops->parse_opts(opts, &fsle->fse)) {
g_free(fsle->fse.fsdev_id);
g_free(fsle);
return -1;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册