0

Spanish: ¿Como puedo saber si tengo un espacio de memoria sin liberar?. English: How can I know if I have a memory space withou

Spanish(){ Tengo un programa que hace uso del head para almacenar una cadena dinamica. Pero me viene la pregunta de que si he liberado esa parte de memoria o tengo fuga de memoria. ¿Como puedo saber si tengo memoria sin liberar en mi código C?. } English(){ I have a program that uses head to store a dynamic string. But the question comes to me as to whether I have freed that part of memory or have a memory leak. How can I tell if I have unreleased memory in my C code? }

18th Mar 2021, 6:01 PM
Daniel Briceño
Daniel Briceño - avatar
4 Réponses
+ 1
Most IDE'S have tools or plugins that you can use to check memory usage etc. You'd need to find this info for the IDE that you're using and learn how to use the tool. You can usually Google it and find some tutorials and YouTube videos.
18th Mar 2021, 6:18 PM
ChaoticDawg
ChaoticDawg - avatar
+ 2
Thank you very much I will try. ChaoticDawg
18th Mar 2021, 6:28 PM
Daniel Briceño
Daniel Briceño - avatar
0
..... ChaoticDawg I do not know if I asked the correct question, but in google I did not get anything. Only explanation of the dynamic memory and nothing else.
18th Mar 2021, 6:21 PM
Daniel Briceño
Daniel Briceño - avatar
0
Google 'C check for memory leaks' I find plenty of info and different tools etc with that search.
18th Mar 2021, 6:25 PM
ChaoticDawg
ChaoticDawg - avatar