Skip hse_fini when not closing kvdb
@@ -473,6 +473,9 @@ main(int argc, char **argv)
free(info[c].key);
free(info);
+ /* Call hse_fini only if the kvdb was closed.
+ */
+ if (!opt_sync)
hse_fini();
pg_destroy(pg);
