1
0
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:
drh
2002-08-25 18:29:11 +00:00
parent 4b59ab5e64
commit d94a669894
7 changed files with 76 additions and 40 deletions

View File

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