From: Dragos Oancea Date: Fri, 6 Mar 2020 15:00:33 +0000 (+0000) Subject: [mod_amr] fix memory leak at load time (xml) X-Git-Tag: v1.10.3^2~56^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d0502b405e647d992a44a1d1b44d86a108150cee;p=thirdparty%2Ffreeswitch.git [mod_amr] fix memory leak at load time (xml) --- 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 */