diff options
author | danielk1977 <danielk1977@noemail.net> | 2007-08-30 15:46:06 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2007-08-30 15:46:06 +0000 |
commit | cd03724cb2fae0eba193f3871eb4351a3627f9c2 (patch) | |
tree | 9d8025b02606c5740fe57493459ae008388db832 /src/mem2.c | |
parent | 744f574889f877f468128835e86fbcf7c7131119 (diff) | |
download | sqlite-cd03724cb2fae0eba193f3871eb4351a3627f9c2.tar.gz sqlite-cd03724cb2fae0eba193f3871eb4351a3627f9c2.zip |
Check in extra fixes for malloc4.test. (CVS 4341)
FossilOrigin-Name: 49ce3a838194f0316c883dbe1596d13c0c0fad1b
Diffstat (limited to 'src/mem2.c')
-rw-r--r-- | src/mem2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mem2.c b/src/mem2.c index d3cc9354a..afaf01030 100644 --- a/src/mem2.c +++ b/src/mem2.c @@ -12,7 +12,7 @@ ** This file contains the C functions that implement a memory ** allocation subsystem for use by SQLite. ** -** $Id: mem2.c,v 1.11 2007/08/29 12:31:26 danielk1977 Exp $ +** $Id: mem2.c,v 1.12 2007/08/30 15:46:07 danielk1977 Exp $ */ /* @@ -497,6 +497,10 @@ int sqlite3_memdebug_fail(int iFail, int iRepeat, int *piBenign){ return n; } +int sqlite3_memdebug_pending(){ + return (mem.iFail-1); +} + void sqlite3MallocBenignFailure(int isBenign){ if( isBenign ){ mem.iNextIsBenign = 1; |