sd: remove 'ssd' driver support
[unleashed/tickless.git] / usr / src / lib / libsqlite / tool / memleak.awk
blobfa2a22ef897eb32a84850a26cf14298d3e0dac70
2 #pragma ident "%Z%%M% %I% %E% SMI"
5 # This script looks for memory leaks by analyzing the output of "sqlite"
6 # when compiled with the MEMORY_DEBUG=2 option.
8 /[0-9]+ malloc / {
9 mem[$6] = $0
11 /[0-9]+ realloc / {
12 mem[$8] = "";
13 mem[$10] = $0
15 /[0-9]+ free / {
16 if (mem[$6]=="") {
17 print "*** free without a malloc at",$6
19 mem[$6] = "";
20 str[$6] = ""
22 /^string at / {
23 addr = $4
24 sub("string at " addr " is ","")
25 str[addr] = $0
27 END {
28 for(addr in mem){
29 if( mem[addr]=="" ) continue
30 print mem[addr], str[addr]