From 555f09009acbee2bdaa34e0634bce1341aa5f21b Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Tue, 21 Apr 2015 11:01:54 +0900 Subject: [PATCH] eet - fix emile changes to not leak in eet_cipher/deciper() coverity spotted a missing binbuf free for the in binbuf created in CID 1288921 and CID 1288920. this fixes both of these. leak. new. --- src/lib/eet/eet_cipher.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/eet/eet_cipher.c b/src/lib/eet/eet_cipher.c index 073d4bf8ef..65a8635929 100644 --- a/src/lib/eet/eet_cipher.c +++ b/src/lib/eet/eet_cipher.c @@ -889,6 +889,7 @@ eet_cipher(const void *data, if (result) *result = out ? eina_binbuf_string_steal(out) : NULL; eina_binbuf_free(out); + eina_binbuf_free(in); return out ? EET_ERROR_NONE : EET_ERROR_ENCRYPT_FAILED; } @@ -910,5 +911,6 @@ eet_decipher(const void *data, if (result) *result = out ? eina_binbuf_string_steal(out) : NULL; eina_binbuf_free(out); + eina_binbuf_free(in); return out ? EET_ERROR_NONE : EET_ERROR_DECRYPT_FAILED; }