This fixes some possible segfaults that could happen if the header (re)allocation fails.
Attach a file by drag & drop or click to upload