From d0502b405e647d992a44a1d1b44d86a108150cee Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Fri, 6 Mar 2020 15:00:33 +0000 Subject: [PATCH] [mod_amr] fix memory leak at load time (xml) --- src/mod/codecs/mod_amr/mod_amr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/codecs/mod_amr/mod_amr.c b/src/mod/codecs/mod_amr/mod_amr.c index 67426b81c8..56294e2a5e 100644 --- a/src/mod/codecs/mod_amr/mod_amr.c +++ b/src/mod/codecs/mod_amr/mod_amr.c @@ -633,6 +633,10 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_amr_load) } } } + + if (xml) { + switch_xml_free(xml); + } #endif /* connect my internal structure to the blank pointer passed to me */