From: Kinsey Moore Date: Wed, 6 Mar 2013 15:21:42 +0000 (+0000) Subject: Resolve a ref leak in threadpool.c X-Git-Tag: 13.0.0-beta1~2040 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d182115fcb7d267312e6cb630a33ab5ff6ec2344;p=thirdparty%2Fasterisk.git Resolve a ref leak in threadpool.c Ownership of the listener reference is not transferred because the listener is reffed when placed into the taskprocessor. Ensure that the listener is dereffed properly. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@382489 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/threadpool.c b/main/threadpool.c index 58647d59f6..1bf6003ab8 100644 --- a/main/threadpool.c +++ b/main/threadpool.c @@ -1188,7 +1188,6 @@ struct ast_taskprocessor *ast_threadpool_serializer(const char *name, struct ast if (!tps) { return NULL; } - listener = NULL; /* ownership transferred to tps */ return tps; }