handle_header_buffer() does no take ownership of the buffer passed.
Fixes leaks in various unit tests.