Fix memory leak in bt-api for g_variant_iter_loop
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-audio.c
index 1b12414..46c29fc 100644 (file)
@@ -565,6 +565,8 @@ static int __bt_hf_agent_read_call_list(GVariant *reply,
                (*call_list)->list = g_list_append((*call_list)->list,
                                                        (gpointer)call_info);
        }
+
+       g_variant_unref(var_temp);
        BT_DBG("-");
        return BLUETOOTH_ERROR_NONE;
 }