raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=555f09009acbee2bdaa34e0634bce1341aa5f21b

commit 555f09009acbee2bdaa34e0634bce1341aa5f21b
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Apr 21 11:01:54 2015 +0900

    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 073d4bf..65a8635 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;
 }

-- 


Reply via email to