From: Mateusz Moscicki Date: Mon, 14 Jun 2021 08:49:32 +0000 (+0200) Subject: update-manager: Fix resource leak X-Git-Tag: submit/tizen/20210614.124929^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27dac138965ecc04835cbeb6791c917fbc1c00f1;p=platform%2Fcore%2Fsystem%2Fupdate-control.git update-manager: Fix resource leak Change-Id: Id98b2ff5125720dbcaca3e67be3b50753501db26 --- diff --git a/update-manager/fota/fota-installer.c b/update-manager/fota/fota-installer.c index be1f156..489e13c 100644 --- a/update-manager/fota/fota-installer.c +++ b/update-manager/fota/fota-installer.c @@ -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");