mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Fix the sqlite3_bind_blob() interface (and its kin) so that the destructor
is invoked if the binding fails. Ticket [860399cc408f2dd5f41aed44b] Update the documentation to explain which interfaces invoke their destructors on failure and which do not. FossilOrigin-Name: d3c95e3a4e08d08028e9bc7f282074e32b9cf950
This commit is contained in:
@@ -1022,6 +1022,8 @@ static int bindText(
|
||||
rc = sqlite3ApiExit(p->db, rc);
|
||||
}
|
||||
sqlite3_mutex_leave(p->db->mutex);
|
||||
}else if( xDel ){
|
||||
xDel((void*)zData);
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user