update-manager: Fix resource leak 86/259786/2 accepted/tizen/unified/20210615.120233 submit/tizen/20210614.124929
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 14 Jun 2021 08:49:32 +0000 (10:49 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 14 Jun 2021 10:15:00 +0000 (12:15 +0200)
Change-Id: Id98b2ff5125720dbcaca3e67be3b50753501db26

update-manager/fota/fota-installer.c

index be1f1561b7ddd128ff59842284f929d171e5809d..489e13c69984ded381e7eef1b85b80bbb4381cfa 100644 (file)
@@ -85,6 +85,10 @@ int fota_installer_execute(pid_t sender_pid)
 
        /* 2. Find the delta file path */
        client_delta_path = find_delta_dir(appid);
+       if (appid != NULL) {
+               free(appid);
+               appid = NULL;
+       }
 
        if (client_delta_path == NULL) {
                _FLOGE("Delta file not found");