From bfd150eadc40b4a656e2823015aa1865b90a6ad1 Mon Sep 17 00:00:00 2001 From: Ed Hartnett Date: Thu, 7 Mar 2019 13:56:13 -0700 Subject: [PATCH] fixed memory leak --- tests/cunit/test_darray_fill.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/cunit/test_darray_fill.c b/tests/cunit/test_darray_fill.c index 9316c84967b..2e6c43e9829 100644 --- a/tests/cunit/test_darray_fill.c +++ b/tests/cunit/test_darray_fill.c @@ -360,12 +360,11 @@ int main(int argc, char **argv) } /* next type */ } /* next fill value test case */ - } /* next rearranger */ - - /* Finalize PIO system. */ - if ((ret = PIOc_finalize(iosysid))) - return ret; + /* Finalize PIO iosysid. */ + if ((ret = PIOc_finalize(iosysid))) + return ret; + } /* next rearranger */ } /* endif my_rank < TARGET_NTASKS */ /* Finalize the MPI library. */