Simple C implementation to track memory malloc/free?

后端 未结 7 1364
情歌与酒
情歌与酒 2020-12-01 13:32

programming language: C platform: ARM Compiler: ADS 1.2

I need to keep track of simple melloc/free calls in my project. I just need to get very basic id

相关标签:
7条回答
  • 2020-12-01 14:04

    Your program may also need to intercept realloc(), calloc(), getcwd() (as it may allocate memory when buffer is NULL in some implementations) and maybe strdup() or a similar function, if it is supported by your compiler

    0 讨论(0)
提交回复
热议问题