summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-06-01 23:42:25 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-06-01 23:42:25 (GMT)
commitecb52e75d3394f8f373ae37ff2487228997b43a4 (patch)
treeecbfbe900b7f9ab8bdd422d28b358981097e7b32 /test
parent891b407e7b0e8f3db54f0a780906373f3a9fff5b (diff)
downloadhdf5-ecb52e75d3394f8f373ae37ff2487228997b43a4.zip
hdf5-ecb52e75d3394f8f373ae37ff2487228997b43a4.tar.gz
hdf5-ecb52e75d3394f8f373ae37ff2487228997b43a4.tar.bz2
[svn-r2317] Close a small memory leak in the test program (not library).
Diffstat (limited to 'test')
-rw-r--r--test/dtypes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dtypes.c b/test/dtypes.c
index 0031cf5..4555753 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -836,6 +836,10 @@ test_compound_5(void)
H5Tclose(string);
H5Tclose(short_array);
H5Tclose(int_array);
+
+ /* Free memory buffers */
+ free(buf);
+ free(bkg);
/* Check results */
if (memcmp(src[1].name, dst[1].name, sizeof(src[1].name)) ||