From: Honggang Li <honli@xxxxxxxxxx> Signed-off-by: Honggang Li <honli@xxxxxxxxxx> --- osmtest/osmtest.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osmtest/osmtest.c b/osmtest/osmtest.c index 4ef78eb0..b7197bf3 100644 --- a/osmtest/osmtest.c +++ b/osmtest/osmtest.c @@ -2736,9 +2736,8 @@ osmtest_create_inventory_file(IN osmtest_t * const p_osmt) if (status != IB_SUCCESS) goto Exit; - fclose(fh); - Exit: + fclose(fh); OSM_LOG_EXIT(&p_osmt->log); return (status); } -- 2.14.4