summaryrefslogtreecommitdiff
path: root/src/lib
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
parentefdca32fe8693dec46db8f3fbd912eadd6217dec (diff)
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')
-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,
889 if (result) *result = out ? eina_binbuf_string_steal(out) : NULL; 889 if (result) *result = out ? eina_binbuf_string_steal(out) : NULL;
890 890
891 eina_binbuf_free(out); 891 eina_binbuf_free(out);
892 eina_binbuf_free(in);
892 return out ? EET_ERROR_NONE : EET_ERROR_ENCRYPT_FAILED; 893 return out ? EET_ERROR_NONE : EET_ERROR_ENCRYPT_FAILED;
893} 894}
894 895
@@ -910,5 +911,6 @@ eet_decipher(const void *data,
910 if (result) *result = out ? eina_binbuf_string_steal(out) : NULL; 911 if (result) *result = out ? eina_binbuf_string_steal(out) : NULL;
911 912
912 eina_binbuf_free(out); 913 eina_binbuf_free(out);
914 eina_binbuf_free(in);
913 return out ? EET_ERROR_NONE : EET_ERROR_DECRYPT_FAILED; 915 return out ? EET_ERROR_NONE : EET_ERROR_DECRYPT_FAILED;
914} 916}