Home | History | Annotate | Download | only in tests

Lines Matching refs:total_mem

67 static size_t total_mem=0;
95 total_mem += n;
114 printf("yyflex_alloc(%8ld) total=%8ld return=%#10lx\n",(long)n,(long)total_mem,(long)p);
126 total_mem -= ptrs[i].sz;
127 total_mem += n;
132 (long)p,(long)n,(long)total_mem,(long)ptrs[i].p);
149 total_mem -= ptrs[i].sz;
154 printf("yyflex_free(%#10lx) total=%8ld\n",(long)p,(long)total_mem);
181 if ( nptrs > 0 || total_mem > 0){
182 fprintf(stderr,"Oops. Looks like a memory leak: nptrs=%d, unfreed memory=%ld\n",nptrs,(long)total_mem);