summaryrefslogtreecommitdiffstats
path: root/runtime/libgcry.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/libgcry.c')
-rw-r--r--runtime/libgcry.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/libgcry.c b/runtime/libgcry.c
index 3fca50ec..57380243 100644
--- a/runtime/libgcry.c
+++ b/runtime/libgcry.c
@@ -344,7 +344,12 @@ gcryfileDestruct(gcryfile gf, off64_t offsLogfile)
if(gf == NULL)
goto done;
+dbgprintf("DDDD: cryprov closes file %s\n", gf->eiName);
eiClose(gf, offsLogfile);
+ if(gf->bDeleteOnClose) {
+ DBGPRINTF("unlink file '%s' due to bDeleteOnClose set\n", gf->eiName);
+ unlink((char*)gf->eiName);
+ }
free(gf->eiName);
free(gf);
done: return r;