Consistent memory management for HTTP crash on windows.