freeswitch/src/mod/event_handlers/mod_event_multicast
Sebastian Kemper fc41980f19 [mod_event_multicast] Fix memory leak
Taken from FS-11193:

In "event_handler()" function, when encrypting data using openssl 1.1.0,
the context ctx is allocated by "EVP_CIPHER_CTX_new()", then data is
encrypted, and at the end, EVP_CIPHER_CTX_cleanup is called. This
function resets the context (the function itself is deprecated, and has
been renamed to "EVP_CIPHER_CTX_reset) so that it can be used again. The
correct call would be to "EVP_CIPHER_CTX_free()", which frees the
memory. The code for openssl 1.0 is OK, since the "ctx" struct is kept
in stack.  The same thing happens during decryption. "ctx" is allocated,
but never freed.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-12 21:43:14 +02:00
..
conf/autoload_configs conf: add config files to module directories 2012-03-24 04:51:08 +00:00
Makefile.am move applications to use automake 2014-03-07 18:36:12 -05:00
mod_event_multicast.2017.vcxproj FS-11263: [Build-System] Move FreeSWITCH build system to Visual Studio 2017 on Windows. 2018-07-24 07:21:55 +00:00
mod_event_multicast.c [mod_event_multicast] Fix memory leak 2019-10-12 21:43:14 +02:00