Simplify the mem3.c memory allocator. Have it call sqlite3_release_memory()
automatically, without having to specify the soft heap limit. (CVS 4496) FossilOrigin-Name: ca51b2f54076fcf73a8857aecf4b45d66ef0c7b6
This commit is contained in:
+2
-1
@@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this file is testing built-in functions.
|
||||
#
|
||||
# $Id: func.test,v 1.69 2007/09/12 17:01:45 danielk1977 Exp $
|
||||
# $Id: func.test,v 1.70 2007/10/20 15:41:58 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@@ -465,6 +465,7 @@ do_test func-12.7 {
|
||||
}
|
||||
} {}
|
||||
|
||||
|
||||
# Test that the auxdata API for scalar functions works. This test uses
|
||||
# a special user-defined function only available in test builds,
|
||||
# test_auxdata(). Function test_auxdata() takes any number of arguments.
|
||||
|
||||
+2
-2
@@ -11,7 +11,7 @@
|
||||
# This file implements some common TCL routines used for regression
|
||||
# testing the SQLite library
|
||||
#
|
||||
# $Id: tester.tcl,v 1.92 2007/10/15 19:34:32 drh Exp $
|
||||
# $Id: tester.tcl,v 1.93 2007/10/20 15:41:58 drh Exp $
|
||||
|
||||
|
||||
set tcl_precision 15
|
||||
@@ -197,7 +197,7 @@ proc finalize_testing {} {
|
||||
if {[sqlite3_memory_used]>0} {
|
||||
puts "Unfreed memory: [sqlite3_memory_used] bytes"
|
||||
incr nErr
|
||||
ifcapable memdebug {
|
||||
ifcapable memdebug||(mem3&&debug) {
|
||||
puts "Writing unfreed memory log to \"./memleak.txt\""
|
||||
sqlite3_memdebug_dump ./memleak.txt
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user