diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/os_unix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index f4dc24f04..cd6a074a8 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -2268,6 +2268,7 @@ static int fillInUnixFile( rc = findLockInfo(h, &pNew->pLock, &pNew->pOpen); leaveMutex(); if( rc ){ + if( dirfd>=0 ) close(dirfd); close(h); return SQLITE_NOMEM; } |