Fix memory leak introduced when POST support was added.