summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyungwook Tak <k.tak@samsung.com>2016-07-19 07:21:51 (GMT)
committerKyungwook Tak <k.tak@samsung.com>2016-07-19 09:19:08 (GMT)
commit1aebf02f77796380a570ea41732db0c706213ed1 (patch)
treebc3707d13d9c14e024cea22a8323d895e6f38f73
parentf0718c7aa95e51b41e1ee71747a01d75b3aaa9e6 (diff)
downloadlibwebappenc-1aebf02f77796380a570ea41732db0c706213ed1.zip
libwebappenc-1aebf02f77796380a570ea41732db0c706213ed1.tar.gz
libwebappenc-1aebf02f77796380a570ea41732db0c706213ed1.tar.bz2
Fix memory leak on decrypt migrated wgtrefs/changes/25/80625/2
Change-Id: I300a887e7e633af858e102797c500d1266566355 Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
-rw-r--r--srcs/web_app_enc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/srcs/web_app_enc.c b/srcs/web_app_enc.c
index a5224ea..083addf 100644
--- a/srcs/web_app_enc.c
+++ b/srcs/web_app_enc.c
@@ -76,10 +76,7 @@ int _wae_decrypt_downloaded_web_application(const char *pkg_id, wae_app_type_e a
"needed secure-storage data migration.", pkg_id);
ret = decrypt_by_old_ss_algo(pkg_id, data, data_len, pdecrypted_data, pdecrypted_data_len);
- if (ret != WAE_ERROR_NONE)
- goto error;
- else
- return WAE_ERROR_NONE;
+ goto error; // always go to error to skip decyprt_aes_cbc
} else if (ret != WAE_ERROR_NONE) {
goto error;
}