1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-25 20:58:26 +03:00

Drop the mutex if the TSD key allocation fails. Ticket #1585. (CVS 2880)

FossilOrigin-Name: 77ac231c0e21c09c0b612a4e72bcc863f2c95fd3
This commit is contained in:
drh
2006-01-07 04:06:54 +00:00
parent a34c62d866
commit 8c0ca7d27c
3 changed files with 8 additions and 7 deletions

View File

@@ -1678,6 +1678,7 @@ void *sqlite3UnixThreadSpecificData(int nByte){
int rc;
rc = pthread_key_create(&key, deleteTsd);
if( rc ){
sqlite3OsLeaveMutex();
return 0;
}
keyInit = 1;