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.
工具/软件:TI-RTOS
您好!
我使用 malloc()为变量分配了动态内存。
然后、我想在使用后释放存储器。 所以我使用了 free()。 但是、在这之后、当我尝试访问变量时、我仍然会获得该值、但它不会被释放。
char * temp = malloc (10 * sizeof (char));
。 这里有一些代码用于为 temp 分配值。。
免费(临时);
printf (temp)->在这里、它仍然显示该值
FREE()当时是否不起作用?
此致、
Shyam