Lines Matching refs:addr
118 $addr = $2;
122 elsif(!exists $sizeataddr{$addr}) {
125 elsif(-1 == $sizeataddr{$addr}) {
127 print "FREE ERROR: Previously freed at: ".$getmem{$addr}."\n";
130 $totalmem -= $sizeataddr{$addr};
132 print "FREE: malloc at ".$getmem{$addr}." is freed again at $source:$linenum\n";
133 … printf("FREE: %d bytes freed, left allocated: $totalmem bytes\n", $sizeataddr{$addr});
139 $sizeataddr{$addr}=-1; # set -1 to mark as freed
140 $getmem{$addr}="$source:$linenum";
146 $addr = $2;
148 if($sizeataddr{$addr}>0) {
151 … print "We think $sizeataddr{$addr} bytes are already allocated at that memory address: $addr!\n";
154 $sizeataddr{$addr}=$size;
166 $getmem{$addr}="$source:$linenum";
170 $addr = $3;
175 if($sizeataddr{$addr}>0) {
180 $sizeataddr{$addr}=$size;
192 $getmem{$addr}="$source:$linenum";
222 $addr = $3;
223 $getmem{$addr}="$source:$linenum";
224 $sizeataddr{$addr}=$size;
231 $getmem{$addr}, $totalmem);
242 $addr = $3;
243 $getmem{$addr}="$source:$linenum";
244 $sizeataddr{$addr}=$size;
251 $getmem{$addr}, $totalmem);
384 $addr = $_;
385 $size = $sizeataddr{$addr};
387 print "At $addr, there's $size bytes.\n";
388 print " allocated by ".$getmem{$addr}."\n";