1
0
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:
drh
2010-10-12 02:13:32 +00:00
parent 88404c2a7d
commit 6fec9ee34c
4 changed files with 37 additions and 18 deletions

View File

@@ -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;
}