summaryrefslogtreecommitdiff
path: root/channels/chan_iax2.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-11-04 19:44:31 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-11-04 19:44:31 +0000
commit08b10da53b38284f6bb805241ace772806928071 (patch)
treeca36983ad0ee93f94baacb09051acae3d36527c3 /channels/chan_iax2.c
parenteb856fbb48c77cde01a6211ed068ac97b958e084 (diff)
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
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r--channels/chan_iax2.c8
1 files changed, 4 insertions, 4 deletions
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);