mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
Add some more missing ast_sorcery_generic_alloc conversions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392667 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -226,7 +226,7 @@ static void sip_acl_destructor(void *obj)
|
||||
|
||||
static void *sip_acl_alloc(const char *name)
|
||||
{
|
||||
struct sip_acl *acl = ao2_alloc(sizeof(*acl), sip_acl_destructor);
|
||||
struct sip_acl *acl = ast_sorcery_generic_alloc(sizeof(*acl), sip_acl_destructor);
|
||||
if (!acl) {
|
||||
return NULL;
|
||||
}
|
||||
|
@@ -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);
|
||||
|
@@ -469,7 +469,7 @@ static void sip_outbound_registration_destroy(void *obj)
|
||||
/*! \brief Allocator function for registration information */
|
||||
static void *sip_outbound_registration_alloc(const char *name)
|
||||
{
|
||||
struct sip_outbound_registration *registration = ao2_alloc(sizeof(*registration), sip_outbound_registration_destroy);
|
||||
struct sip_outbound_registration *registration = ast_sorcery_generic_alloc(sizeof(*registration), sip_outbound_registration_destroy);
|
||||
|
||||
if (!registration || ast_string_field_init(registration, 256)) {
|
||||
ao2_cleanup(registration);
|
||||
|
Reference in New Issue
Block a user