Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

shellext: close handle / descriptor in error cases

in function fopenReadRenameAllowed

Changeset 459aef122277

Parent 0c1d0e0971e6

by Adrian Buehlmann

Changes to one file · Browse files at 459aef122277 Showing diff from parent 0c1d0e0971e6 Diff from another changeset...

 
265
266
267
 
268
269
270
 
273
274
275
 
276
277
278
 
265
266
267
268
269
270
271
 
274
275
276
277
278
279
280
@@ -265,6 +265,7 @@
  if (fd == -1)   {   TDEBUG_TRACE("fopenReadRenameAllowed: _open_osfhandle failed"); + ::CloseHandle(fh);   return 0;   }   @@ -273,6 +274,7 @@
  if (f == 0)   {   TDEBUG_TRACE("fopenReadRenameAllowed: _fdopen failed"); + ::_close(fd);   return 0;   }