diff options
author | Russell Bryant <russell@russellbryant.com> | 2009-03-31 14:53:45 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2009-03-31 14:53:45 +0000 |
commit | c9c8758d6d2fd3d277b1b26adf464d180a8e7959 (patch) | |
tree | 9628c87bab320b390b971113de1ed4aab2da128b /apps/app_queue.c | |
parent | d40f86db1b83822151ee48bfe974785e55185033 (diff) |
Don't free() an astobj2 object.
(closes issue #14672)
Reported by: makoto
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@185261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_queue.c')
-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 1acf5bb43..b3dd532d5 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1630,7 +1630,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); |