aboutsummaryrefslogtreecommitdiffstats
path: root/main/channel.c
diff options
context:
space:
mode:
authorrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-27 21:22:17 +0000
committerrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-27 21:22:17 +0000
commitca3d2396c9d7accd7f2c5b665b2df94137e5b54f (patch)
treec966977a9b3b4a6b0ed8ce392c5be744aad8ee91 /main/channel.c
parent36963c1bce21d26343ac222911d8528dfe4f8e69 (diff)
Fix a small memory leak on error in ast_channel_alloc().
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@190797 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index d85f4d7de..eabbfd0f4 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -855,6 +855,8 @@ alertpipe_failed:
sched_context_destroy(tmp->sched);
ast_string_field_free_memory(tmp);
+ ast_free(tmp->cid.cid_name);
+ ast_free(tmp->cid.cid_num);
ast_free(tmp);
return NULL;
} else {