diff options
author | Luigi Rizzo <rizzo@icir.org> | 2007-11-04 19:44:31 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2007-11-04 19:44:31 +0000 |
commit | 08b10da53b38284f6bb805241ace772806928071 (patch) | |
tree | ca36983ad0ee93f94baacb09051acae3d36527c3 /main/channel.c | |
parent | eb856fbb48c77cde01a6211ed068ac97b958e084 (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 'main/channel.c')
-rw-r--r-- | main/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/channel.c b/main/channel.c index 843c1dd27..84d5cd66a 100644 --- a/main/channel.c +++ b/main/channel.c @@ -678,7 +678,7 @@ struct ast_channel *ast_channel_alloc(int needqueue, int state, const char *cid_ if (needqueue) { if (pipe(tmp->alertpipe)) { ast_log(LOG_WARNING, "Channel allocation failed: Can't create alert pipe!\n"); - ast_string_field_free_pools(tmp); + ast_string_field_free_memory(tmp); ast_free(tmp); return NULL; } else { @@ -1171,7 +1171,7 @@ void ast_channel_free(struct ast_channel *chan) /* Destroy the jitterbuffer */ ast_jb_destroy(chan); - ast_string_field_free_pools(chan); + ast_string_field_free_memory(chan); ast_free(chan); AST_RWLIST_UNLOCK(&channels); |