summaryrefslogtreecommitdiffstats
path: root/hl/test/test_image.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2013-05-15 13:38:41 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2013-05-15 13:38:41 (GMT)
commitb0235a2610b4ce744153f4d16a21dc5cd88d7616 (patch)
tree14f329a91d1fcd5fc358a4d4b08b53936ddf6029 /hl/test/test_image.c
parent7922ae388e429ee09242523683f01f75ae6a12f9 (diff)
downloadhdf5-b0235a2610b4ce744153f4d16a21dc5cd88d7616.zip
hdf5-b0235a2610b4ce744153f4d16a21dc5cd88d7616.tar.gz
hdf5-b0235a2610b4ce744153f4d16a21dc5cd88d7616.tar.bz2
[svn-r23707] Vagrind memleak: bufferes only cleaned up if there was an error.
Diffstat (limited to 'hl/test/test_image.c')
-rw-r--r--hl/test/test_image.c9
1 files changed, 9 insertions, 0 deletions
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;