Fix memory leak 53/246653/1
authorChanggyu Choi <changyu.choi@samsung.com>
Tue, 3 Nov 2020 02:21:57 +0000 (11:21 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Tue, 3 Nov 2020 02:22:02 +0000 (11:22 +0900)
Change-Id: I9cd3053c71053b2d7ad5a1ec638e1edd1c345a2e
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
notification/src/notification_ipc.c

index a4c79a4..2c2a5cf 100644 (file)
@@ -481,6 +481,7 @@ static void _delete_multiple_notify(GVariant *parameters)
        buf = (int *)malloc(sizeof(int) * num);
        if (buf == NULL) {
                ERR("Failed to alloc");
+               g_variant_iter_free(iter);
                return;
        }
 
@@ -523,6 +524,7 @@ static void _delete_by_display_applist_notify(GVariant *parameters)
        buf = (int *)malloc(sizeof(int) * num);
        if (buf == NULL) {
                ERR("Failed to alloc");
+               g_variant_iter_free(iter);
                return;
        }