diff options
author | Kinsey Moore <kmoore@digium.com> | 2013-03-06 15:21:42 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2013-03-06 15:21:42 +0000 |
commit | d182115fcb7d267312e6cb630a33ab5ff6ec2344 (patch) | |
tree | ac967c0046289edbb4b5b34c3c04a74d35208af4 /main/threadpool.c | |
parent | 8d5c36c9bb91af574fbe0dd261f3b6601304b263 (diff) |
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
Diffstat (limited to 'main/threadpool.c')
-rw-r--r-- | main/threadpool.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/main/threadpool.c b/main/threadpool.c index 58647d59f..1bf6003ab 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; } |