G_IO_HUP should be checked before G_IO_IN
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-event-handler.c
index 79ce01a..b5dcd89 100644 (file)
@@ -656,7 +656,7 @@ static void __bt_mesh_event_filter(GDBusConnection *connection,
 
                for (i = 0; i < total; i++)
                        g_free(info.sub_list[i]);
-               if (info.appkey_list) {
+               if (info.sub_list) {
                        g_free(info.sub_list);
                        g_variant_iter_free(iter);
                }