Fix coverity bugs 05/258405/2
authorAgnieszka Baumann <a.baumann@samsung.com>
Thu, 13 Feb 2020 14:55:39 +0000 (15:55 +0100)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 17 May 2021 02:30:25 +0000 (02:30 +0000)
Change-Id: I0bc275fe4d314eda7cdf88d39559dde56e8cc154
(cherry picked from commit 0b6247def93304a72ffba54efc28883078f7b7b1)

src/memory/memory-killer.c

index 3e954c297c8157a8e886eaf4ac77beac4867750e..4d5e97a39c345fe2f1c26f3826cf021279dacd5d 100644 (file)
@@ -439,7 +439,7 @@ static void memory_killer_set_max_victim(void)
 
 clean:
        if (mv_list)
-               free(mv_list);
+               g_free(mv_list);
 }
 
 /**
@@ -494,7 +494,7 @@ static void memory_killer_set_threshold(struct memory_killer_threshold *mkt)
 
 clean:
        if (threshold_list)
-               free(threshold_list);
+               g_free(threshold_list);
 }
 
 /**