summaryrefslogtreecommitdiff
path: root/res/res_sip_endpoint_identifier_ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_sip_endpoint_identifier_ip.c')
-rw-r--r--res/res_sip_endpoint_identifier_ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_sip_endpoint_identifier_ip.c b/res/res_sip_endpoint_identifier_ip.c
index 89bf1d554..9e39b277a 100644
--- a/res/res_sip_endpoint_identifier_ip.c
+++ b/res/res_sip_endpoint_identifier_ip.c
@@ -74,7 +74,7 @@ static void ip_identify_destroy(void *obj)
/*! \brief Allocator function for a matching object */
static void *ip_identify_alloc(const char *name)
{
- struct ip_identify_match *identify = ao2_alloc(sizeof(*identify), ip_identify_destroy);
+ struct ip_identify_match *identify = ast_sorcery_generic_alloc(sizeof(*identify), ip_identify_destroy);
if (!identify || ast_string_field_init(identify, 256)) {
ao2_cleanup(identify);