mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 01:45:11 +00:00
Merged revisions 130574 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r130574 | mvanbaak | 2008-07-14 00:50:31 +0200 (Mon, 14 Jul 2008) | 16 lines Merged revisions 130573 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r130573 | mvanbaak | 2008-07-14 00:48:51 +0200 (Mon, 14 Jul 2008) | 8 lines fix memory leak when originate from manager cannot create a thread (closes issue #13069) Reported by: gknispel_proformatique Patches: asterisk_trunk_action_originate.patch uploaded by gknispel (license 261) Tested by: gknispel_proformatique, mvanbaak ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2195,6 +2195,7 @@ static int action_originate(struct mansession *s, const struct message *m)
|
|||||||
fast->timeout = to;
|
fast->timeout = to;
|
||||||
fast->priority = pi;
|
fast->priority = pi;
|
||||||
if (ast_pthread_create_detached(&th, NULL, fast_originate, fast)) {
|
if (ast_pthread_create_detached(&th, NULL, fast_originate, fast)) {
|
||||||
|
ast_free(fast);
|
||||||
res = -1;
|
res = -1;
|
||||||
} else {
|
} else {
|
||||||
res = 0;
|
res = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user