mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -855,6 +855,8 @@ alertpipe_failed:
|
|||||||
|
|
||||||
sched_context_destroy(tmp->sched);
|
sched_context_destroy(tmp->sched);
|
||||||
ast_string_field_free_memory(tmp);
|
ast_string_field_free_memory(tmp);
|
||||||
|
ast_free(tmp->cid.cid_name);
|
||||||
|
ast_free(tmp->cid.cid_num);
|
||||||
ast_free(tmp);
|
ast_free(tmp);
|
||||||
return NULL;
|
return NULL;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user