From 32a1f4566273874e61b02e84187e949dfafb8be2 Mon Sep 17 00:00:00 2001 From: russell Date: Tue, 31 Mar 2009 14:56:27 +0000 Subject: 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 --- apps/app_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/app_queue.c') 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); -- cgit v1.2.3