summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/res_fax_spandsp.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/res/res_fax_spandsp.c b/res/res_fax_spandsp.c
index 288f91dac..42492273d 100644
--- a/res/res_fax_spandsp.c
+++ b/res/res_fax_spandsp.c
@@ -48,14 +48,16 @@
<support_level>extended</support_level>
***/
-#include "asterisk.h"
-
-ASTERISK_REGISTER_FILE()
-
+/* Include spandsp headers before asterisk.h so the inline functions can continue using
+ * malloc and free, even with MALLOC_DEBUG enabled. */
#define SPANDSP_EXPOSE_INTERNAL_STRUCTURES
#include <spandsp.h>
#include <spandsp/version.h>
+#include "asterisk.h"
+
+ASTERISK_REGISTER_FILE()
+
#include "asterisk/logger.h"
#include "asterisk/module.h"
#include "asterisk/strings.h"