aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:47:33 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:47:33 +0200
commit24c07f03d1427db2ed9dee7428c83352b60439dd (patch)
treecb0b8c5078cdda6b20376045ba38754fef3369e8
parenteina_test_file: Fix resource leak (diff)
downloadefl-24c07f03d1427db2ed9dee7428c83352b60439dd.tar.gz
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 https://phab.enlightenment.org/D8772 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8773
-rw-r--r--src/tests/eldbus/eldbus_test_eldbus_message.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/eldbus/eldbus_test_eldbus_message.c b/src/tests/eldbus/eldbus_test_eldbus_message.c
index ebba03ba8f..f255ee322b 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);