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

index 67426b81c8a04fc2a890e37597016c086c9ef5fc..56294e2a5ede6b609482e54b56e2755406a321a5 100644 (file)
@@ -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 */