summaryrefslogtreecommitdiff
path: root/cpputools/source/regcomplazy/regcomplazy.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cpputools/source/regcomplazy/regcomplazy.cxx')
-rwxr-xr-xcpputools/source/regcomplazy/regcomplazy.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpputools/source/regcomplazy/regcomplazy.cxx b/cpputools/source/regcomplazy/regcomplazy.cxx
index 69fd77446156..abcb2c187c08 100755
--- a/cpputools/source/regcomplazy/regcomplazy.cxx
+++ b/cpputools/source/regcomplazy/regcomplazy.cxx
@@ -131,6 +131,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
sBuffer.append(pBuffer, readSize);
}
}
+ fclose(fDescr);
+ fDescr = 0; // just to be sure noone tries to use the file ever after
}
OString sDescr = sBuffer.makeStringAndClear();