Update src/pkgmgrinfo_appinfo.c
author최창규/Tizen Platform Lab(SR)/Engineer/삼성전자 <changyu.choi@samsung.com>
Tue, 2 Mar 2021 06:22:03 +0000 (15:22 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 2 Mar 2021 06:22:03 +0000 (15:22 +0900)
src/pkgmgrinfo_appinfo.c

index 0c2a579..1ee2e81 100644 (file)
@@ -124,6 +124,8 @@ static int _pkgmgrinfo_get_appinfo(const char *appid, uid_t uid,
        info->package = strdup(info->app_info->package);
        if (!info->package || !info->locale) {
                _LOGE("out of memory");
+               if (info->locale)
+                       free(info->locale);
                g_hash_table_destroy(list);
                free(info);
                return PMINFO_R_ERROR;