Tool/software: TI-RTOS
Hello,
I allocated dynamic memory to a variable using the malloc().
And then I wanted to free the memory after use. So I used the free(). But then after that when I try to access the variable, I still get the value there, it is not freed.
char *temp = malloc(10 * sizeof(char));
.........Some code here to assign value to temp........
free(temp);
printf(temp) -> Here it still shows up the value
Is the free() not working then?
Regards,
Shyam