diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-31 14:56:27 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-31 14:56:27 +0000 |
commit | 32a1f4566273874e61b02e84187e949dfafb8be2 (patch) | |
tree | e3c552b26513f7c8fc0191bc9183a8a133dc4b27 | |
parent | a6a4ed32c18aaf3ce5f65247f332af32d95274dc (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.0@185262 f38db490-d61c-443f-a65b-d21fe96a405b
-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 1c730efe5..85dc4fcd6 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -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); |