Browse Source

double free on ply read/write

Former-commit-id: eb0446791b1ba2c0beea66d9f736de982204f5b8
Alec Jacobson 9 years ago
parent
commit
2700d48a06
3 changed files with 1 additions and 3 deletions
  1. 1 1
      include/igl/ply.h.REMOVED.git-id
  2. 0 1
      include/igl/readPLY.cpp
  3. 0 1
      include/igl/writePLY.cpp

+ 1 - 1
include/igl/ply.h.REMOVED.git-id

@@ -1 +1 @@
-a11a359439a307b36f2320e726048ce3dd344fda
+aa5b1239a610dbd02506563452ec69172ae4165a

+ 0 - 1
include/igl/readPLY.cpp

@@ -153,7 +153,6 @@ IGL_INLINE bool igl::readPLY(
     }
   }
   ply_close(in_ply);
-  fclose(fp);
   return true;
 }
 

+ 0 - 1
include/igl/writePLY.cpp

@@ -132,7 +132,6 @@ IGL_INLINE bool igl::writePLY(
   }
 
   ply_close(ply);
-  fclose(fp);
   for(size_t i = 0;i<(size_t)F.rows();i++)
   {
     delete[] flist[i].verts;