From ac728d2dd00659dc71d4ad281cc236287695159f Mon Sep 17 00:00:00 2001 From: saerome kim Date: Thu, 14 Feb 2019 10:44:07 +0900 Subject: [PATCH] Fixed svace 85247 resoure leak. Change-Id: I484bc15588b3209c5e8fb588a6ae9f3dddd2c91e Signed-off-by: saerome kim --- src/zbl-dbus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zbl-dbus.c b/src/zbl-dbus.c index 07262df..c495404 100644 --- a/src/zbl-dbus.c +++ b/src/zbl-dbus.c @@ -847,6 +847,8 @@ static void _zbl_signal_handler(GDBusConnection *connection, case ZB_ZCL_CHARACTER_STRING: if (FALSE == g_variant_iter_loop(data_iter, "(y)", &value)) { ERR("No Data"); + __records_value_free(records, j); + __records_free(records, count); goto EXIT_EVENT_HANDLER; } data_size = value + 1; -- 2.7.4