Fix buffer leak in AbstractMemoryHttpData