diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-31 14:57:45 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-31 14:57:45 +0000 |
commit | 4d935da3402e8bf4f629d9937c0c0efb677ac603 (patch) | |
tree | 411ef6743eec0b0c6bdd71bf682a03af87bd28e0 /apps | |
parent | 3c882efb932e50355a4d2bbeaf27e5db88dee1c5 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.6.1@185263 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index d0e881177..c2650c499 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1439,7 +1439,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); |