diff options
-rw-r--r-- | test/dtypes.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/dtypes.c b/test/dtypes.c index 6f5d439..264af69 100644 --- a/test/dtypes.c +++ b/test/dtypes.c @@ -853,9 +853,7 @@ test_compound_5(void) 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)) || @@ -867,6 +865,10 @@ test_compound_5(void) FAILED(); return 1; } + + /* Free memory buffers */ + free(buf); + free(bkg); PASSED(); return 0; } |