Fixed descriptor leak

This commit is contained in:
MelwareDE 2011-06-14 11:34:59 +00:00
parent c1e0bc653b
commit 00b4758564
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ int diva_destroy_segment_alloc (struct _diva_segment_alloc** segment_alloc) {
#if defined(LINUX)
if (pI->fd >= 0)
close (pI->fd);
if (pI->fd_mem == 0)
if (pI->fd_mem >= 0)
close (pI->fd_mem);
#endif
#else