free_nhfile() will already call init_nhfile()

This commit is contained in:
nhmall
2025-05-31 07:11:36 -04:00
parent d2810a4bcd
commit aa50f30653

View File

@@ -527,7 +527,6 @@ close_nhfile(NHFILE *nhfp)
(void) fclose(nhfp->fplog);
if (nhfp->fpdebug)
(void) fclose(nhfp->fpdebug);
init_nhfile(nhfp);
free_nhfile(nhfp);
}
@@ -572,7 +571,6 @@ viable_nhfile(NHFILE *nhfp)
if (nhfp->fpdebug)
(void) fclose(nhfp->fpdebug);
}
init_nhfile(nhfp);
free_nhfile(nhfp);
nhfp = (NHFILE *) 0;
}