[SECURITY][MCR]Double free issue resolved 44/188244/1
authoralkasethi <alka.sethi@samsung.com>
Mon, 3 Sep 2018 09:08:05 +0000 (14:38 +0530)
committeralkasethi <alka.sethi@samsung.com>
Mon, 3 Sep 2018 09:08:05 +0000 (14:38 +0530)
Change-Id: Ic0ed347b565d522800be41f4d807c990ad163801
Signed-off-by: alkasethi <alka.sethi@samsung.com>
src/default_plugin_appcmd.c

index 1c7204d..ef674ec 100755 (executable)
@@ -95,9 +95,13 @@ static int appcmd_install_gen_shellcmd(appcmd_info* p_info) {
                }
                D("buf=%s\n", buf);
                free(type);
+               type = NULL;
                free(pkgpath);
+               pkgpath = NULL;
                free(pkgid);
+               pkgid = NULL;
                free(teppath);
+               teppath = NULL;
 
                return 0;
        }