remove invalid free accepted/tizen/unified/20220705.211048 submit/tizen/20220704.080759
authorYoungjae Shin <yj99.shin@samsung.com>
Mon, 4 Jul 2022 08:03:22 +0000 (17:03 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Mon, 4 Jul 2022 08:05:56 +0000 (17:05 +0900)
client/mdsc_get_modes.c

index 93195b6167ca7460e7ec8c392175a246d7d1a09b..314deed0c21b75a0b56291bb044bfa64fea4c74a 100644 (file)
@@ -54,8 +54,6 @@ static GList *_get_mode_list(GVariant *in_data, int *result)
         mode_list_data_h mode = malloc(sizeof(struct mds_list_data_handle));
         if (NULL == mode) {
             ERR("malloc() Fail(%d)", errno);
-            free(mode_id);
-            free(mode_name);
             g_list_free_full(mode_list, _free_mode);
             mode_list = NULL;
             *result = MODES_ERROR_OUT_OF_MEMORY;