int main(){
int *pointer = malloc(5);
free(pointer);
return 0;
}
==44611==
==44611== HEAP SUMMARY:
==44611== in use at exit: 22,223 bytes in 183 blocks
==44611== total heap usage: 259 allocs, 76 frees, 28,335 bytes allocated
==44611==
==44611== LEAK SUMMARY:
==44611== definitely lost: 0 bytes in 0 blocks
==44611== indirectly lost: 0 bytes in 0 blocks
==44611== possibly lost: 0 bytes in 0 blocks
==44611== still reachable: 0 bytes in 0 blocks
==44611== suppressed: 22,223 bytes in 183 blocks
==44611==
从代码中可以看出,似乎有一些我没有完成的分配和释放以及已分配的大量字节?这些字节现在是否被计算机无法使用,因为当我开始用C编程时我忘了释放它们? 抑制意味着什么呢? 并帮助解决这个问题。谢谢