aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/eet
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-04-21 11:01:54 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-04-21 11:01:54 +0900
commit555f09009acbee2bdaa34e0634bce1341aa5f21b (patch)
treee4cc6fcb094e21047f7621beafde2fbcefbfe4dd /src/lib/eet
parentecore_x - axis events - if event struct alloc fails, free axis data (diff)
downloadefl-555f09009acbee2bdaa34e0634bce1341aa5f21b.tar.gz
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.
Diffstat (limited to 'src/lib/eet')
-rw-r--r--src/lib/eet/eet_cipher.c2
1 files changed, 2 insertions, 0 deletions
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;
}