mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2025-02-17 01:20:02 +00:00
tests/header_test.tpl: Fix a memory leak
Found using AddressSanitizer.
This commit is contained in:
parent
fa92cc4b88
commit
9b4fdaccc1
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user