From 08b10da53b38284f6bb805241ace772806928071 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Sun, 4 Nov 2007 19:44:31 +0000 Subject: Simplify the implementation and the API for stringfields; details and examples are in include/asterisk/stringfields.h. Not applicable to older branches except for 1.4 which will receive a fix for the routines that free memory pools. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88454 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_iax2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'channels/chan_iax2.c') diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index dff41ecb2..dded09177 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -2152,7 +2152,7 @@ retry: iax2_frame_free(frame.data); jb_destroy(pvt->jb); /* gotta free up the stringfields */ - ast_string_field_free_pools(pvt); + ast_string_field_free_memory(pvt); ast_free(pvt); } } @@ -9735,7 +9735,7 @@ static void peer_destructor(void *obj) if (peer->mwi_event_sub) ast_event_unsubscribe(peer->mwi_event_sub); - ast_string_field_free_pools(peer); + ast_string_field_free_memory(peer); } /*! \brief Create peer structure based on configuration */ @@ -9987,7 +9987,7 @@ static void user_destructor(void *obj) ast_variables_destroy(user->vars); user->vars = NULL; } - ast_string_field_free_pools(user); + ast_string_field_free_memory(user); } /*! \brief Create in-memory user structure from configuration */ @@ -10028,7 +10028,7 @@ static struct iax2_user *build_user(const char *name, struct ast_variable *v, st if (user) { if (firstpass) { - ast_string_field_free_pools(user); + ast_string_field_free_memory(user); memset(user, 0, sizeof(struct iax2_user)); if (ast_string_field_init(user, 32)) { user = user_unref(user); -- cgit v1.2.3