Fix Side effect from "Fix Coverity issues"
[platform/core/api/multi-device-group.git] / test / main.c
index 477af92..6714239 100644 (file)
@@ -33,6 +33,7 @@ extern struct menu_data menu_mdg_manager[];
 
 extern GList *found_group_list;
 extern GList *found_device_list;
+extern GList *found_invited_device_list;
 extern mdg_h handle;
 
 #define CASE_TO_STR(x) case x: return #x;
@@ -158,6 +159,8 @@ OUT:
                g_list_free_full(found_group_list, _free_group);
        if (found_device_list)
                g_list_free_full(found_device_list, _free_device);
+       if (found_invited_device_list)
+               g_list_free_full(found_invited_device_list, _free_device);
 
        mdg_deinitialize(handle);