1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Remove another unreachable branch in the sqlite3_set_clientdata() logic.

FossilOrigin-Name: 57e31e6b10b2aa68b6039914d191819bae0aa60999a99d5ef23ca18128b72e0e
This commit is contained in:
drh
2023-08-30 17:41:55 +00:00
parent a5af4a6614
commit d25d938877
3 changed files with 9 additions and 8 deletions

View File

@@ -3742,7 +3742,8 @@ int sqlite3_set_clientdata(
pp = &p->pNext;
}
if( p ){
if( p->pData && p->xDestructor ) p->xDestructor(p->pData);
assert( p->pData!=0 );
if( p->xDestructor ) p->xDestructor(p->pData);
if( pData==0 ){
*pp = p->pNext;
sqlite3_free(p);