From b0235a2610b4ce744153f4d16a21dc5cd88d7616 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Wed, 15 May 2013 08:38:41 -0500 Subject: [svn-r23707] Vagrind memleak: bufferes only cleaned up if there was an error. --- hl/test/test_image.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hl/test/test_image.c b/hl/test/test_image.c index 76acef8..38f1830 100644 --- a/hl/test/test_image.c +++ b/hl/test/test_image.c @@ -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; -- cgit v0.12