tests/header_test.tpl: Fix a memory leak

Found using AddressSanitizer.
This commit is contained in:
Erik de Castro Lopo 2017-10-26 19:21:02 +11:00
parent fa92cc4b88
commit 9b4fdaccc1

View File

@ -357,6 +357,7 @@ update_header_before_write_test (const char *filename, int typemajor)
data_out [k] = k + 1 ;
test_write_int_or_die (outfile, 0, data_out, BUFFER_LEN, __LINE__) ;
sf_close (outfile) ;
unlink (filename) ;
puts ("ok") ;
} /* update_header_before_write_test */