Fix memory leak in HttpClientCodecTest