Fix memory Leak: Incorrect deallocator used 78/225778/1
authorhimanshu <h.himanshu@samsung.com>
Mon, 24 Feb 2020 06:36:11 +0000 (12:06 +0530)
committerhimanshu <h.himanshu@samsung.com>
Mon, 24 Feb 2020 10:01:58 +0000 (15:31 +0530)
The uuid_value should be freed with g_strfreev()
instead of g_free()

Change-Id: Ib9bbadd6e7a0215dd9742be1ce88346c84f2feb9
Signed-off-by: himanshu <h.himanshu@samsung.com>
bt-oal/bluez_hal/src/bt-hal-event-receiver.c

index 29caf36..f763544 100644 (file)
@@ -1825,7 +1825,7 @@ static void __bt_hal_device_properties_lookup(GVariant *result, char *address)
                                        (BT_HAL_STACK_UUID_SIZE * uuid_count),
                                        uuids);
                        ev->num_props = num_props_tmp + 1;
-                       g_free(uuid_value);
+                       g_strfreev(uuid_value);
                }
                g_variant_unref(tmp_value);