fix mishandling of accept limit that caused a memory leak.