Fixed descriptor leak
This commit is contained in:
parent
c1e0bc653b
commit
00b4758564
|
@ -212,7 +212,7 @@ int diva_destroy_segment_alloc (struct _diva_segment_alloc** segment_alloc) {
|
||||||
#if defined(LINUX)
|
#if defined(LINUX)
|
||||||
if (pI->fd >= 0)
|
if (pI->fd >= 0)
|
||||||
close (pI->fd);
|
close (pI->fd);
|
||||||
if (pI->fd_mem == 0)
|
if (pI->fd_mem >= 0)
|
||||||
close (pI->fd_mem);
|
close (pI->fd_mem);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue