Adjust the location to free the variable. We should free the value
after using it.
Change-Id: I96461efce94ce9e4bc85146239fa4781c0858f60
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
g_variant_get(ret, "(v)", &value);
uuid_value = (char **)g_variant_get_strv(value, &size);
BT_DBG("Size items %d", size);
- g_variant_unref(value);
- g_variant_unref(ret);
}
if (uuid_value) {
if (uuid_value)
g_free(uuid_value);
+ if (value)
+ g_variant_unref(value);
+
+ if (ret)
+ g_variant_unref(ret);
+
BT_DBG("-");
return result;
}