Resolve memory leak in bt-service-adaptation
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-adaptation / services / ipsp / bt-service-ipsp-event-receiver.c
index 1fd52f5..51629b9 100644 (file)
@@ -80,7 +80,7 @@ static void __bt_device_property_changed_event(GVariant *msg, const char *path)
                } else if (strcasecmp(property, "IpspBtInterfaceInfo") == 0) {
                        char *ifname = NULL;
 
-                       g_variant_get(val, "s", &ifname);
+                       g_variant_get(val, "&s", &ifname);
 
                        address = g_malloc0(BT_ADDRESS_STRING_SIZE);