Fix memory leak on readHeader