summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkabeer khan <kabeer.khan@samsung.com>2014-12-22 11:55:44 +0100
committerCedric BAIL <cedric@osg.samsung.com>2014-12-22 11:55:48 +0100
commitd25d56758c735cdf5760278f8a97e9c6b8ec7355 (patch)
tree673d342204f56da6eb8043bbbb0df24a127e3c0f
parenta6e6a4a44af6f769db7a2a8b44d79eaa208c187e (diff)
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>
-rw-r--r--src/lib/eet/eet_cipher.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/eet/eet_cipher.c b/src/lib/eet/eet_cipher.c
index 2dd4d07872..66ee245ae2 100644
--- a/src/lib/eet/eet_cipher.c
+++ b/src/lib/eet/eet_cipher.c
@@ -1110,8 +1110,10 @@ eet_decipher(const void *data,
1110 1110
1111 err = gcry_cipher_setiv(cipher, iv, MAX_IV_LEN); 1111 err = gcry_cipher_setiv(cipher, iv, MAX_IV_LEN);
1112 if (err) 1112 if (err)
1113 goto on_error; 1113 {
1114 1114 free(ret);
1115 goto on_error;
1116 }
1115 err = gcry_cipher_setkey(cipher, ik, MAX_KEY_LEN); 1117 err = gcry_cipher_setkey(cipher, ik, MAX_KEY_LEN);
1116 if (err) 1118 if (err)
1117 goto on_error; 1119 goto on_error;