plug memory leak

This commit is contained in:
Axel Kohlmeyer
2023-09-22 07:51:16 -04:00
parent 63eda98779
commit bb462b9ea3

View File

@ -1153,6 +1153,7 @@ void CreateAtoms::add_mesh(const char *filename)
utils::logmesg(lmp, " read {} triangles with {:.2f} atoms per triangle added in {} mode\n",
ntriangle, ratio, mesh_name[mesh_style]);
}
if (fp) fclose(fp);
}
/* ----------------------------------------------------------------------