Fix memory leak with concurrency limits #3590