eet: fix memory leak in eet_cipher

Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

@fix

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1799

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
kabeer khan 2014-12-22 11:55:44 +01:00 committed by Cedric BAIL
parent a6e6a4a44a
commit d25d56758c
1 changed files with 4 additions and 2 deletions

View File

@ -1110,8 +1110,10 @@ eet_decipher(const void *data,
err = gcry_cipher_setiv(cipher, iv, MAX_IV_LEN);
if (err)
goto on_error;
{
free(ret);
goto on_error;
}
err = gcry_cipher_setkey(cipher, ik, MAX_KEY_LEN);
if (err)
goto on_error;