[mod_amr] fix memory leak at load time (xml)

This commit is contained in:
Dragos Oancea 2020-03-06 15:00:33 +00:00
parent 90a7fc7125
commit d0502b405e
1 changed files with 4 additions and 0 deletions

View 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 */