From 38f14cbca7494fe44f9be58e749ba67b71021bb9 Mon Sep 17 00:00:00 2001
From: Luigi Rizzo <rizzo@icir.org>
Date: Thu, 6 Apr 2006 14:02:19 +0000
Subject: [PATCH] use FREE instead of free as pointer to the destructor
 function. This way the MALLOC_DEBUG code will always get the correct
 argument.

(bug introduced in SVN15818)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17824 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 pbx/pbx_config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c
index 68429f53a1..15c554e3dc 100644
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -1468,7 +1468,7 @@ static int pbx_load_module(void)
 								if (!strcmp(realext, "_."))
 									ast_log(LOG_WARNING, "The use of '_.' for an extension is strongly discouraged and can have unexpected behavior.  Please use '_X.' instead at line %d\n", v->lineno);
 							}
-							if (ast_add_extension2(con, 0, realext, ipri, label, cidmatch, appl, strdup(data), free, registrar)) {
+							if (ast_add_extension2(con, 0, realext, ipri, label, cidmatch, appl, strdup(data), FREE, registrar)) {
 								ast_log(LOG_WARNING, "Unable to register extension at line %d\n", v->lineno);
 							}
 						}
-- 
GitLab