Resolve a ref leak in threadpool.c
[asterisk/asterisk.git] / main / threadpool.c
index 58647d5..1bf6003 100644 (file)
@@ -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;
 }