This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

malloc失败问题



各位专家大牛:

我使用C6678的芯片,用CCS裸机工程调用malloc函数分配内存,然后再用free函数释放内存,最终在重复malloc几次之后就会返回指针为空了,malloc的次数与.cmd文件中--heap分配的大小有关;

请教一下,malloc一定次数之后返回指针为空可能是跟什么有关?是free函数没有生效吗?