aboutsummaryrefslogtreecommitdiff
path: root/src/backup.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2010-08-31 15:27:32 +0000
committerdrh <drh@noemail.net>2010-08-31 15:27:32 +0000
commit9f129f467e7961b3225a0ecc37d26cddc9155943 (patch)
tree9b79e74a77f70b2bb1762e9b2548d1531f4b4d04 /src/backup.c
parent18ec96b3a3a138c8e54f4fcc56102f246004ade4 (diff)
downloadsqlite-9f129f467e7961b3225a0ecc37d26cddc9155943.tar.gz
sqlite-9f129f467e7961b3225a0ecc37d26cddc9155943.zip
Add evidence mark comments to source code. Add additional information to the
documentation of sqlite3_release_memory(). Fix a minor inefficiency in mem1.c that was discovered while writing requirements tests. FossilOrigin-Name: 53b0c03fd33d2d8141fd386de5493fec64456042
Diffstat (limited to 'src/backup.c')
-rw-r--r--src/backup.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/backup.c b/src/backup.c
index 1fc01e1ad..db8baeac5 100644
--- a/src/backup.c
+++ b/src/backup.c
@@ -150,7 +150,10 @@ sqlite3_backup *sqlite3_backup_init(
);
p = 0;
}else {
- /* Allocate space for a new sqlite3_backup object */
+ /* Allocate space for a new sqlite3_backup object...
+ ** EVIDENCE-OF: R-64852-21591 The sqlite3_backup object is created by a
+ ** call to sqlite3_backup_init() and is destroyed by a call to
+ ** sqlite3_backup_finish(). */
p = (sqlite3_backup *)sqlite3_malloc(sizeof(sqlite3_backup));
if( !p ){
sqlite3Error(pDestDb, SQLITE_NOMEM, 0);
@@ -533,6 +536,9 @@ int sqlite3_backup_finish(sqlite3_backup *p){
}
sqlite3BtreeLeave(p->pSrc);
if( p->pDestDb ){
+ /* EVIDENCE-OF: R-64852-21591 The sqlite3_backup object is created by a
+ ** call to sqlite3_backup_init() and is destroyed by a call to
+ ** sqlite3_backup_finish(). */
sqlite3_free(p);
}
sqlite3_mutex_leave(mutex);