summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-04-05 15:01:44 +0900
committerHermet Park <hermetpark@gmail.com>2018-04-05 15:01:44 +0900
commit820aca03ea70ea355993ae7978fcb9df14276b82 (patch)
tree7c6774e70d1691c6616dd91041d674a6b8428234
parent07f7fee2d0d201c43cb1ab6fbc17aaad2a23a6ea (diff)
emil: resolve possible memory leak.
Submitted-By-Off: JongMin Lee <jm105.lee@samsung.com>
-rw-r--r--src/lib/emile/emile_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/emile/emile_main.c b/src/lib/emile/emile_main.c
index de96269872..4037c96e01 100644
--- a/src/lib/emile/emile_main.c
+++ b/src/lib/emile/emile_main.c
@@ -140,7 +140,10 @@ emile_pbkdf2_sha1(const char *key, unsigned int key_len, const unsigned char *sa
140 return EINA_FALSE; 140 return EINA_FALSE;
141 step2 = eina_binbuf_manage_new(digest, 20, EINA_TRUE); 141 step2 = eina_binbuf_manage_new(digest, 20, EINA_TRUE);
142 if (!step2) 142 if (!step2)
143 return EINA_FALSE; 143 {
144 eina_binbuf_free(step1);
145 return EINA_FALSE;
146 }
144 147
145 for (i = 1; len; len -= tmp_len, p += tmp_len, i++) 148 for (i = 1; len; len -= tmp_len, p += tmp_len, i++)
146 { 149 {