Lines Matching refs:totalmem
127 $totalmem -= $sizeataddr{$addr};
130 … printf("FREE: %d bytes freed, left allocated: $totalmem bytes\n", $sizeataddr{$addr});
133 newtotal($totalmem);
152 $totalmem += $size;
156 " makes totally $totalmem bytes\n";
159 newtotal($totalmem);
177 $totalmem += $size;
181 " makes totally $totalmem bytes\n";
184 newtotal($totalmem);
192 $totalmem -= $sizeataddr{$oldaddr};
198 $totalmem += $newsize;
205 newtotal($totalmem);
220 $totalmem += $size;
224 $getmem{$addr}, $totalmem);
227 newtotal($totalmem);
239 $totalmem += $size;
243 $getmem{$addr}, $totalmem);
246 newtotal($totalmem);
372 if($totalmem) {
373 print "Leak detected: memory still allocated: $totalmem bytes\n";