Fix possibility of memory leak 91/219691/1
authorIlho Kim <ilho159.kim@samsung.com>
Mon, 9 Dec 2019 07:19:49 +0000 (16:19 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Mon, 9 Dec 2019 07:19:49 +0000 (16:19 +0900)
Change-Id: I5bfd5f3c51a20ab2d8392c6abe394a7f1790c61b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/install_preload_pkg.c

index 77e31e1..e53ab34 100644 (file)
@@ -135,6 +135,7 @@ static int _install_preload_pkg(const char *backend, const char *directory,
                } else if (pid < 0) {
                        _E("failed to fork and execute %s!", backend);
                        closedir(dir);
+                       g_list_free_full(preload_rw_pkg_list, free);
                        return -1;
                }