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:
@@ -1678,6 +1678,7 @@ void *sqlite3UnixThreadSpecificData(int nByte){
|
||||
int rc;
|
||||
rc = pthread_key_create(&key, deleteTsd);
|
||||
if( rc ){
|
||||
sqlite3OsLeaveMutex();
|
||||
return 0;
|
||||
}
|
||||
keyInit = 1;
|
||||
|
||||
Reference in New Issue
Block a user