From: Dragos Oancea Date: Fri, 6 Mar 2020 15:08:29 +0000 (+0000) Subject: [mod_amrwb] fix memory leak at load time (xml) X-Git-Tag: v1.10.3^2~55^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F484%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_amrwb] fix memory leak at load time (xml) --- diff --git a/src/mod/codecs/mod_amrwb/mod_amrwb.c b/src/mod/codecs/mod_amrwb/mod_amrwb.c index a2f8a2f604..b3690520d2 100644 --- a/src/mod/codecs/mod_amrwb/mod_amrwb.c +++ b/src/mod/codecs/mod_amrwb/mod_amrwb.c @@ -551,6 +551,10 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_amrwb_load) } } } + + if (xml) { + switch_xml_free(xml); + } #endif /* connect my internal structure to the blank pointer passed to me */