Make the MALLOC_DEBUG output for free() useful again. After changing calls to
[asterisk/asterisk.git] / channels / chan_sip.c
index 880eb2e..8c4fb4e 100644 (file)
@@ -2906,7 +2906,7 @@ static void register_peer_exten(struct sip_peer *peer, int onoff)
                }
                if (onoff)
                        ast_add_extension(context, 1, ext, 1, NULL, NULL, "Noop",
-                                ast_strdup(peer->name), ast_free, "SIP");
+                                ast_strdup(peer->name), ast_free_ptr, "SIP");
                else
                        ast_context_remove_extension(context, ext, 1, NULL);
        }