]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_amrwb] fix memory leak at load time (xml) 484/head
authorDragos Oancea <dragos@signalwire.com>
Fri, 6 Mar 2020 15:08:29 +0000 (15:08 +0000)
committerDragos Oancea <dragos@signalwire.com>
Fri, 6 Mar 2020 15:08:29 +0000 (15:08 +0000)
src/mod/codecs/mod_amrwb/mod_amrwb.c

index a2f8a2f6048647551c5dedfab68fa50fcf39c7d9..b3690520d231aabc0f02fa7cdfd5148eba4db280 100644 (file)
@@ -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 */