From bd7ef89ca1195282b71a71501495a622be6c0cd0 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 2 May 2019 13:47:33 +0200 Subject: [PATCH] eldbus_test_eldbus_message: Fix resource leak Summary: Coverity reports that we leak the variable 'msg' going out of scope here, so lets add a call to unref the returned eldbus_message so it gets freed Fixes CID1400921 @fix Depends on D8772 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8773 --- src/tests/eldbus/eldbus_test_eldbus_message.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/eldbus/eldbus_test_eldbus_message.c b/src/tests/eldbus/eldbus_test_eldbus_message.c index ebba03b..f255ee3 100644 --- a/src/tests/eldbus/eldbus_test_eldbus_message.c +++ b/src/tests/eldbus/eldbus_test_eldbus_message.c @@ -1455,6 +1455,7 @@ EFL_START_TEST(utc_eldbus_message_iter_del_p) eldbus_message_iter_del(iter); } + eldbus_message_unref(msg); eldbus_connection_unref(conn_client); eldbus_service_interface_unregister(iface); eldbus_connection_unref(conn_server); -- 2.7.4