emil: resolve possible memory leak.

Submitted-By-Off: JongMin Lee <jm105.lee@samsung.com>
This commit is contained in:
Hermet Park 2018-04-05 15:01:44 +09:00
parent 07f7fee2d0
commit 820aca03ea
1 changed files with 4 additions and 1 deletions

View File

@ -140,7 +140,10 @@ emile_pbkdf2_sha1(const char *key, unsigned int key_len, const unsigned char *sa
return EINA_FALSE;
step2 = eina_binbuf_manage_new(digest, 20, EINA_TRUE);
if (!step2)
return EINA_FALSE;
{
eina_binbuf_free(step1);
return EINA_FALSE;
}
for (i = 1; len; len -= tmp_len, p += tmp_len, i++)
{