mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Fix the memory leak introduced by check-in (725). (CVS 726)
FossilOrigin-Name: b957dafc26383af514795df18bc7b8f367c9bd21
This commit is contained in:
@ -2,19 +2,19 @@
|
||||
# This script looks for memory leaks by analyzing the output of "sqlite"
|
||||
# when compiled with the MEMORY_DEBUG=2 option.
|
||||
#
|
||||
/^malloc / {
|
||||
mem[$5] = $0
|
||||
/[0-9]+ malloc / {
|
||||
mem[$6] = $0
|
||||
}
|
||||
/^realloc / {
|
||||
mem[$7] = "";
|
||||
mem[$9] = $0
|
||||
/[0-9]+ realloc / {
|
||||
mem[$8] = "";
|
||||
mem[$10] = $0
|
||||
}
|
||||
/^free / {
|
||||
mem[$5] = "";
|
||||
str[$5] = ""
|
||||
/[0-9]+ free / {
|
||||
mem[$6] = "";
|
||||
str[$6] = ""
|
||||
}
|
||||
/^string at / {
|
||||
addr = $3
|
||||
addr = $4
|
||||
sub("string at " addr " is ","")
|
||||
str[addr] = $0
|
||||
}
|
||||
|
Reference in New Issue
Block a user