Skip to content

Commit

Permalink
minior change
Browse files Browse the repository at this point in the history
  • Loading branch information
houjun committed Oct 8, 2024
1 parent c7f1875 commit 28520f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/pdc_region_push.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -183,5 +182,7 @@ main(int argc, char **argv)
exit(-1);
}

free(data);

return 0;
}

0 comments on commit 28520f6

Please sign in to comment.