mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
[svn-r23707] Vagrind memleak: bufferes only cleaned up if there was an error.
This commit is contained in:
parent
7922ae388e
commit
b0235a2610
@ -289,6 +289,15 @@ static int test_simple(void)
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if(buf1)
|
||||
HDfree(buf1);
|
||||
if(buf2)
|
||||
HDfree(buf2);
|
||||
if(buf1_out)
|
||||
HDfree(buf1_out);
|
||||
if(buf2_out)
|
||||
HDfree(buf2_out);
|
||||
|
||||
/* Close the file. */
|
||||
if(H5Fclose( fid ) < 0)
|
||||
goto out;
|
||||
|
Loading…
x
Reference in New Issue
Block a user