syedshan
Advanced Member level 1
![Advanced Member level 1](/styles/images/ranks/glevel1.gif)
- Joined
- Feb 27, 2012
- Messages
- 463
- Helped
- 27
- Reputation
- 54
- Reaction score
- 26
- Trophy points
- 1,308
- Location
- Jeonju, South Korea
- Activity points
- 5,134
hello every one,
If I allocate a memory using malloc or _aligned_malloc() in some function, note that this is internal to the function only.
Hence when I come out of the function will this memory be released automatically or do I have to release them manually.
It is because when I try to release the memory, it gives me some error.
Thanks
If I allocate a memory using malloc or _aligned_malloc() in some function, note that this is internal to the function only.
Hence when I come out of the function will this memory be released automatically or do I have to release them manually.
It is because when I try to release the memory, it gives me some error.
Thanks