https://bugs.kde.org/show_bug.cgi?id=233298
--- Comment #8 from Paul Floyd <[email protected]> --- On FreeBSD +1 mallocs = 1 p = (pool *)malloc(sizeof(pool)); ==74524== at 0x484E374: malloc (vg_replace_malloc.c:451) ==74524== by 0x201B06: make_pool (mempool2.c:46) ==74524== by 0x201F15: test (mempool2.c:122) ==74524== by 0x2024E3: main (mempool2.c:200) +1 mallocs = 2 p->where = p->mem = (char *)malloc(SUPERBLOCK_SIZE); ==74524== at 0x484E374: malloc (vg_replace_malloc.c:451) ==74524== by 0x201B14: make_pool (mempool2.c:47) ==74524== by 0x201F15: test (mempool2.c:122) ==74524== by 0x2024E3: main (mempool2.c:200) +1 mallocs = 3 l = (level_list *)malloc(sizeof(level_list)); ==74524== at 0x484E374: malloc (vg_replace_malloc.c:451) ==74524== by 0x201BF6: push (mempool2.c:65) ==74524== by 0x201F32: test (mempool2.c:127) ==74524== by 0x2024E3: main (mempool2.c:200) +1 mallocs = 4 x1 = allocate(p1, 10); ==74524== at 0x201EE8: allocate (mempool2.c:108) ==74524== by 0x201F4E: test (mempool2.c:130) ==74524== by 0x2024E3: main (mempool2.c:200) +1 mallocs=5 x2 = allocate(p2, 20); ==74524== at 0x201EE8: allocate (mempool2.c:108) ==74524== by 0x201F60: test (mempool2.c:131) ==74524== by 0x2024E3: main (mempool2.c:200) +1 frees=1 VALGRIND_MEMPOOL_FREE(p1->mem, x1); ==74524== at 0x2020C1: test (mempool2.c:149) ==74524== by 0x2024E3: main (mempool2.c:200) +1 frees=2 VALGRIND_MEMPOOL_FREE(p2->mem, x2); ==74524== at 0x202163: test (mempool2.c:154) ==74524== by 0x2024E3: main (mempool2.c:200) +1 mallocs=6 VALGRIND_MEMPOOL_ALLOC(superblock, superblock+30, 10); ==74524== at 0x202391: test (mempool2.c:175) ==74524== by 0x2024E3: main (mempool2.c:200) There's a missing VALGRIND_MEMPOOL_FREE here +1 frees=3 free(l); ==74524== at 0x485034C: free (vg_replace_malloc.c:954) ==74524== by 0x201DC2: pop (mempool2.c:83) ==74524== by 0x20249D: test (mempool2.c:192) ==74524== by 0x2024E3: main (mempool2.c:200) +1 frees=4 free(l); ==74524== at 0x485034C: free (vg_replace_malloc.c:954) ==74524== by 0x201E32: destroy_pool (mempool2.c:97) ==74524== by 0x2024B6: test (mempool2.c:194) +1 frees=5 free(p); ==74524== at 0x485034C: free (vg_replace_malloc.c:954) ==74524== by 0x201E3B: destroy_pool (mempool2.c:98) ==74524== by 0x2024B6: test (mempool2.c:194) ==74524== by 0x2024E3: main (mempool2.c:200) -- You are receiving this mail because: You are watching all bug changes.
