diff options
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index a45aaa1d7..ef04a72e4 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -925,7 +925,9 @@ static void releaseOpenCnt(struct unixOpenCnt *pOpen){ assert( pOpen->pNext->pPrev==pOpen ); pOpen->pNext->pPrev = pOpen->pPrev; } +#if SQLITE_THREADSAFE && defined(__linux__) assert( !pOpen->pUnused || threadsOverrideEachOthersLocks==0 ); +#endif /* If pOpen->pUnused is not null, then memory and file-descriptors ** are leaked. |