]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 280160 via svnmerge from
authorSean Bright <sean@malleable.com>
Wed, 28 Jul 2010 16:52:12 +0000 (16:52 +0000)
committerSean Bright <sean@malleable.com>
Wed, 28 Jul 2010 16:52:12 +0000 (16:52 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r280160 | seanbright | 2010-07-28 12:51:11 -0400 (Wed, 28 Jul 2010) | 8 lines

  Plug a reference leak in app_queue when adding members dynamically.

  (closes issue #17738)
  Reported by: bobwienholt
  Patches:
        issue17738.patch uploaded by bobwienholt (license 950)
  Tested by: bobwienholt, seanbright
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@280161 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 99a18b36d60435e12c2bde2c529f60527f1e1194..ccdee7fb314cd21d780a1b3553b65ad39151ed4b 100644 (file)
@@ -5080,6 +5080,7 @@ static int add_to_queue(const char *queuename, const char *interface, const char
        }
        ao2_unlock(q);
        ao2_unlock(queues);
+       queue_t_unref(q, "Expiring temporary reference");
 
        return res;
 }