1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-15 11:41:13 +03:00

Fix a memory leak in the win32 OS driver. Ticket #2602. (CVS 4345)

FossilOrigin-Name: 1f80cf5e759af68b854d4de2e97badf546a465ca
This commit is contained in:
drh
2007-08-30 16:46:04 +00:00
parent 8601124d56
commit e1843aff8c
3 changed files with 9 additions and 9 deletions

View File

@@ -1130,8 +1130,8 @@ static int winOpen(
#endif
}
if( h==INVALID_HANDLE_VALUE ){
free(zConverted);
if( flags & SQLITE_OPEN_READWRITE ){
free(zConverted);
return winOpen(0, zName, id,
((flags|SQLITE_OPEN_READONLY)&~SQLITE_OPEN_READWRITE), pOutFlags);
}else{