diff --git a/src/p7os/main.c b/src/p7os/main.c index d1d73db..b915f06 100644 --- a/src/p7os/main.c +++ b/src/p7os/main.c @@ -107,7 +107,10 @@ fail: default: log(error_unplanned, p7_strerror(err)); } - /* closing, removing if necessary */ + /* closing the handle */ + p7_exit(handle); + + /* closing the file, removing if necessary */ if (args.localpath) { fclose(args.local); remove(args.localpath);