Hello @Vamsi421,
The answer is in the screenshot you posted (heap_1.c)
/* Memory cannot be freed using this scheme. See heap_2.c, heap_3.c and
* heap_4.c for alternative implementations, and the memory management pages of
* https://www.FreeRTOS.org for more information. */
Use heap_2, for example.
danielmartynek_0-1721386471685.png
Regards,
Daniel