fix the issue of memory leak 34/210634/2 submit/tizen/20190724.023818
authorYoungHun Kim <yh8004.kim@samsung.com>
Tue, 23 Jul 2019 07:49:22 +0000 (16:49 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Tue, 23 Jul 2019 23:51:20 +0000 (08:51 +0900)
Change-Id: I8d7bde7265fc3329aca8b20473779ec9d044b93a

server/src/muse_server_config.c

index 14295bc..a935eb9 100644 (file)
@@ -179,11 +179,13 @@ static int _ms_config_parser(ms_config_t *conf)
                free(key);
        }
 
+       free(hosts);
        return MM_ERROR_NONE;
 
 out:
        ms_config_deinit(conf);
        MUSE_FREE(key);
+       MUSE_FREE(hosts);
        return PARSE_ERROR;
 }