From b0d7349fe8a075bc6fd354d2b8afa1362b6de88b Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 27 Apr 2010 12:33:44 -0500 Subject: [svn-r18632] Description: Clean up memory leak in test code. Tested on: Linux/64 2.4 (amani) w/debug & valgrind --- test/fheap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/fheap.c b/test/fheap.c index 26bcaec..314b9ce 100644 --- a/test/fheap.c +++ b/test/fheap.c @@ -15608,6 +15608,9 @@ test_write(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam) if(H5Fclose(file) < 0) FAIL_STACK_ERROR + /* Free resources */ + if(tparam->comp == FHEAP_TEST_COMPRESS) + H5O_msg_reset(H5O_PLINE_ID, &tmp_cparam.pline); /* Release the I/O pipeline filter information */ /* Free resources */ H5MM_xfree(keep_ids.ids); -- cgit v0.12