diff options
author | Joshua Colp <jcolp@digium.com> | 2007-12-11 19:52:37 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-12-11 19:52:37 +0000 |
commit | 406547d2308e4da83bfac5a27e117b40d1899d06 (patch) | |
tree | e834fd43aa5a318be38690c2060a96f8a0446365 /main/global_datastores.c | |
parent | dea49116ee189146db871cde68013a3e55183b19 (diff) |
Merged revisions 92363 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r92363 | file | 2007-12-11 15:51:40 -0400 (Tue, 11 Dec 2007) | 6 lines
Fix potential memory leak with the dialed interfaces list if another memory allocation fails.
(closes issue #11507)
Reported by: eliel
Patches:
global_datastores.c.patch uploaded by eliel (license 64)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/global_datastores.c')
-rw-r--r-- | main/global_datastores.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/global_datastores.c b/main/global_datastores.c index f43f4e2a4..9b87b2cb4 100644 --- a/main/global_datastores.c +++ b/main/global_datastores.c @@ -65,6 +65,7 @@ static void *dialed_interface_duplicate(void *data) struct ast_dialed_interface *di2 = ast_calloc(1, sizeof(*di2) + strlen(di->interface)); if(!di2) { AST_LIST_UNLOCK(old_list); + dialed_interface_destroy(new_list); return NULL; } strcpy(di2->interface, di->interface); |