Commit b58c86e1 authored by Stefan Weil's avatar Stefan Weil Committed by Anthony Liguori

fsdev: Fix potential memory leak

This leak was reported by cppcheck.
Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
Reviewed-by: default avatarM. Mohan Kumar <mohan@in.ibm.com>
Message-id: 1371376960-18192-1-git-send-email-sw@weilnetz.de
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment