admin管理员组文章数量:1297116
Unfortunately my Mac is a little old (x86_64-apple-darwin19.6.0) so it's not compatible with fsanitize=leak
when I want to analize memory leaks in programs.
leak.c:
#include <stdlib.h>
int main(){
int* bytes = (int*)malloc(sizeof(int));
return 0;
}
I get the following error:
clang: error: unsupported option '-fsanitize=leak' for target 'x86_64-apple-darwin19.6.0'
Is there a workaround to use it? What would you recommend I use in order to analyze memory leaks for my particular situation?
本文标签: gccHow to use fsanitizeleak in older mac versionsStack Overflow
版权声明:本文标题:gcc - How to use fsanitize=leak in older mac versions? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741622048a2388868.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论