GPUSPH / gpusph

The world's first CUDA implementation of Weakly-Compressible Smoothed Particle Hydrodynamics
160 stars 67 forks source link

Unclosed files #38

Open sanguinariojoe opened 5 years ago

sanguinariojoe commented 5 years ago

In STLMesh.cc:307 and STLMesh.cc:342 you are opening (to read) files, which are apparently never closed.

It's even more dangerous in GlobalData.h:663, where a file is written but never closed.