Browse Source

Merge pull request #2584 from laanwj/2013_04_shrinkdebugfile_leak

Prevent prevent file descriptor leak in ShrinkDebugFile()
miguelfreitas
Wladimir J. van der Laan 12 years ago
parent
commit
85157ae018
  1. 2
      src/util.cpp

2
src/util.cpp

@ -1231,6 +1231,8 @@ void ShrinkDebugFile() @@ -1231,6 +1231,8 @@ void ShrinkDebugFile()
fclose(file);
}
}
else if(file != NULL)
fclose(file);
}

Loading…
Cancel
Save