forked from enlightenment/efl
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:
parent
a6e6a4a44a
commit
d25d56758c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue