提交 36524a1a 编写于 作者: M Marc-André Lureau 提交者: Thomas Huth

qtest: fix qtest_qmp_device_add leak

Spotted by ASAN.
Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20191107192731.17330-3-marcandre.lureau@redhat.com>
Reviewed-by: NThomas Huth <thuth@redhat.com>
Fixes: b4510bb4 ("tests: add qtest_qmp_device_add_qdict() helper")
Signed-off-by: NThomas Huth <thuth@redhat.com>
上级 654efcb5
......@@ -1274,6 +1274,7 @@ void qtest_qmp_device_add(QTestState *qts, const char *driver, const char *id,
qdict_put_str(args, "id", id);
qtest_qmp_device_add_qdict(qts, driver, args);
qobject_unref(args);
}
static void device_deleted_cb(void *opaque, const char *name, QDict *data)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册