Patch server poll memory leak