iobuf_close (inp) doesn`t fclose the files in windows OS
Tested with 2.0.28 and 2.1.6 builded with w64-mingw32 gcc-4.9
How to reproduce.
Add pause or sleep to end of g10_exit function. run as gpg2.exe -r XXXXXX -e
file.txt Try to remove or rename file.txt file.
This bug is not present in linux.