From 28520f6feb902d38bcc09e7024a6bcdd584d14e2 Mon Sep 17 00:00:00 2001 From: Houjun Tang Date: Tue, 8 Oct 2024 10:16:48 -0700 Subject: [PATCH] minior change --- src/tools/pdc_region_push.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/pdc_region_push.c b/src/tools/pdc_region_push.c index 7d60268c..acdc1523 100644 --- a/src/tools/pdc_region_push.c +++ b/src/tools/pdc_region_push.c @@ -152,7 +152,6 @@ main(int argc, char **argv) elapsed = t1.tv_sec - t0.tv_sec + (t1.tv_usec - t0.tv_usec) / 1000000.0; printf("Write data took %.2fs\n", elapsed); - free(data); ret = PDCobj_close(obj_id); if (ret < 0) { printf("fail to close obj\n"); @@ -183,5 +182,7 @@ main(int argc, char **argv) exit(-1); } + free(data); + return 0; }