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.
This commit is contained in:
Carsten Haitzler 2015-04-21 11:01:54 +09:00
parent efdca32fe8
commit 555f09009a
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}