Fix the coverity issue (Memory leak) 62/259562/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.5/unified/20211028.094532 accepted/tizen/7.0/unified/20221110.060048 accepted/tizen/7.0/unified/hotfix/20221116.104931 accepted/tizen/8.0/unified/20231005.092947 accepted/tizen/unified/20210616.132553 accepted/tizen/unified/dev/20240620.004831 submit/tizen/20210610.054206 submit/tizen/20210615.073352 submit/tizen_6.5/20211028.161801 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 9 Jun 2021 23:33:05 +0000 (08:33 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 9 Jun 2021 23:38:36 +0000 (08:38 +0900)
Change-Id: If1838213d7a242f8683d5bb166e389fd7edefc9a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/zbl-dbus.c

index c495404..036d252 100644 (file)
@@ -941,6 +941,8 @@ static void _zbl_signal_handler(GDBusConnection *connection,
                                        for (i = 0; i < data_size; i++) {
                                                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;
                                                }
                                                records[j]->value[i] = value;