【发布时间】:2015-08-15 18:25:52
【问题描述】:
我有这个在 c 中写入文件的简单代码
FILE* fp = fopen ("file.txt", "w+");
fprintf(fp, "bla");
free(fp);
我在运行 valgrind 时遇到大量错误,
Address "xxxxxxx" is 192 bytes inside a block of size 568 free'd
Address "xxxxxxx" is 168 bytes inside a block of size 568 free'd
还有很多类似的。 没有泄漏!但有错误。
【问题讨论】: