mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 18:03:34 +00:00
Merged revisions 185261 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r185261 | russell | 2009-03-31 09:53:45 -0500 (Tue, 31 Mar 2009) | 5 lines Don't free() an astobj2 object. (closes issue #14672) Reported by: makoto ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@185262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1438,7 +1438,7 @@ static struct call_queue *alloc_queue(const char *queuename)
|
||||
|
||||
if ((q = ao2_alloc(sizeof(*q), destroy_queue))) {
|
||||
if (ast_string_field_init(q, 64)) {
|
||||
free(q);
|
||||
ao2_ref(q, -1);
|
||||
return NULL;
|
||||
}
|
||||
ast_string_field_set(q, name, queuename);
|
||||
|
||||
Reference in New Issue
Block a user