Fix memory leak 65/214565/2
authorINSUN PYO <insun.pyo@samsung.com>
Tue, 24 Sep 2019 04:55:24 +0000 (13:55 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Thu, 26 Sep 2019 02:18:32 +0000 (11:18 +0900)
Change-Id: I9b99d08acae29d280d1dd32dd6616d8e6d373b57

src/common/storage-helper.c

index a1cb2d4..fdea05c 100644 (file)
@@ -171,10 +171,10 @@ resourced_ret_c storage_get_size(int type, struct storage_size *size)
        goto success;
 
 fail:
-       g_slist_free(paths);
+       g_slist_free_full(paths, free);
        return RESOURCED_ERROR_FAIL;
 
 success:
-       g_slist_free(paths);
+       g_slist_free_full(paths, free);
        return RESOURCED_ERROR_NONE;
 }