summaryrefslogtreecommitdiff
path: root/main/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/channel.c b/main/channel.c
index 605bb5b7e..9a1b6dfca 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -654,7 +654,7 @@ struct ast_channel *ast_channel_alloc(int needqueue)
if (needqueue) {
if (pipe(tmp->alertpipe)) {
ast_log(LOG_WARNING, "Channel allocation failed: Can't create alert pipe!\n");
- ast_string_field_free_all(tmp);
+ ast_string_field_free_pools(tmp);
free(tmp);
return NULL;
} else {
@@ -1055,7 +1055,7 @@ void ast_channel_free(struct ast_channel *chan)
/* Destroy the jitterbuffer */
ast_jb_destroy(chan);
- ast_string_field_free_all(chan);
+ ast_string_field_free_pools(chan);
free(chan);
AST_LIST_UNLOCK(&channels);