bugfix: file descriptor leak with Guardtime signatures

When a .gtstate file is opened it is never closed. This is especially
bad when dynafiles frequently get evicted from dynafile cache and be
re-opened again.
This commit is contained in:
Rainer Gerhards 2014-06-21 09:39:54 +02:00
parent b1cbb1b1f4
commit a531d15c3e
2 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,10 @@ Version 7.6.4 [v7.6-stable] 2014-03-??
- bugfix: using UUID property could cause segfault
- bugfix: mmutf8fix did not detect two invalid sequences
Thanks to Axel Rau for the patch.
- bugfix: file descriptor leak with Guardtime signatures
When a .gtstate file is opened it is never closed. This is especially
bad when dynafiles frequently get evicted from dynafile cache and be
re-opened again.
- bugfix: busy loop in tcp listener when running out of file descriptors
Thanks to Susant Sahani for the patch.
---------------------------------------------------------------------------

View File

@ -406,6 +406,7 @@ readStateFile(gtfile gf)
free(gf->blkStrtHash);
goto err;
}
close(fd);
return;
err: