[svn-r23707] Vagrind memleak: bufferes only cleaned up if there was an error.

This commit is contained in:
Allen Byrne 2013-05-15 08:38:41 -05:00
parent 7922ae388e
commit b0235a2610

View File

@ -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;