summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-01-19 14:44:13 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-01-19 14:44:13 +0100
commitb9db9ca2e359ad75e9df52542a3864c19ad14f5e (patch)
tree13b1208e6f71abe657e1e4ecf1b967d40a7c694c
parent04805fc6a163217464587a7930d5ab1ff5184e7e (diff)
Revert "eet: fix memory leak in eet_cipher"
This reverts commit d25d56758c735cdf5760278f8a97e9c6b8ec7355. That patch was leading to double. Thanks ami for finding it.
-rw-r--r--src/lib/eet/eet_cipher.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/eet/eet_cipher.c b/src/lib/eet/eet_cipher.c
index 66ee245..2dd4d07 100644
--- a/src/lib/eet/eet_cipher.c
+++ b/src/lib/eet/eet_cipher.c
@@ -1110,10 +1110,8 @@ 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 { 1113 goto on_error;
1114 free(ret); 1114
1115 goto on_error;
1116 }
1117 err = gcry_cipher_setkey(cipher, ik, MAX_KEY_LEN); 1115 err = gcry_cipher_setkey(cipher, ik, MAX_KEY_LEN);
1118 if (err) 1116 if (err)
1119 goto on_error; 1117 goto on_error;