diff options
author | Richard Mudgett <rmudgett@digium.com> | 2009-04-27 21:22:17 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2009-04-27 21:22:17 +0000 |
commit | fb030f24ef86e04426ef8367a3c081d83549c320 (patch) | |
tree | c966977a9b3b4a6b0ed8ce392c5be744aad8ee91 | |
parent | 89d06c7759086e1c4e48da6cd693d544684772b9 (diff) |
Fix a small memory leak on error in ast_channel_alloc().
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@190797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/channel.c | 2 |
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 { |