mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Make sure file descriptors are closed before unlinking in VxWorks.
FossilOrigin-Name: f64b81f13de4875343c752e7183bf61032dc9594
This commit is contained in:
@@ -3822,6 +3822,8 @@ static int fillInUnixFile(
|
||||
pNew->lastErrno = 0;
|
||||
#if OS_VXWORKS
|
||||
if( rc!=SQLITE_OK ){
|
||||
if( h>=0 ) close(h);
|
||||
h = -1;
|
||||
unlink(zFilename);
|
||||
isDelete = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user