There is a leak on the request header parsing and allocation.

The response struct allocation is not the problem, it looks good!