eet: fix memory leak with OpenSSL.

Reported by Leandro Santiago <leandrosansilva@gmail.com>.


SVN revision: 80648
This commit is contained in:
Cedric BAIL 2012-12-11 11:52:53 +00:00
parent c0ac1daafd
commit 0d1b29e5e1
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2012-12-11 Cedric Bail
* Fix leak eet_pbkdf2_sha1 with OpenSSL.
2012-12-10 Gustavo Sverzut Barbieri (k-s)
* Added ECORE_GETOPT_ACTION_BREAK to force breaking out of argument

1
NEWS
View File

@ -72,3 +72,4 @@ Fixes:
* Fix build of Ecore_Evas_Extn on Solaris.
* Don't leak fd on exec.
* Fixed polygon rendering bug in GL backend when there are cutouts.
* Fix leak in eet_pbkdf2_sha1 with OpenSSL.

View File

@ -1324,12 +1324,12 @@ eet_pbkdf2_sha1(const char *key,
for (k = 0; k < tmp_len; k++)
p[k] ^= digest[k];
}
}
# ifdef HAVE_GNUTLS
# else
HMAC_cleanup(&hctx);
HMAC_cleanup(&hctx);
# endif /* ifdef HAVE_GNUTLS */
}
return 0;
}