aboutsummaryrefslogtreecommitdiff
path: root/tests/pvpanic-test.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-11-10 12:27:11 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2017-03-01 00:09:28 +0400
commitdc491fead04a92a612df93b85b0ebf9dcc3f6684 (patch)
treea58bda301c8f0c93bf51214dc63f271924ca614f /tests/pvpanic-test.c
parentfc34059f080680b560b3f656988fdd9a75cd0eab (diff)
tests: fix qmp response leak
Spotted by ASAN. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/pvpanic-test.c')
-rw-r--r--tests/pvpanic-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/pvpanic-test.c b/tests/pvpanic-test.c
index 3bfa678667..71ebb5c02c 100644
--- a/tests/pvpanic-test.c
+++ b/tests/pvpanic-test.c
@@ -27,6 +27,7 @@ static void test_panic(void)
data = qdict_get_qdict(response, "data");
g_assert(qdict_haskey(data, "action"));
g_assert_cmpstr(qdict_get_str(data, "action"), ==, "pause");
+ QDECREF(response);
}
int main(int argc, char **argv)