malloc() memory allocation handling


/ Published in: C
Save to your folder(s)

In C, you have to manage your own program's memory. So if you allocate memory using malloc() you should not forget to free() it when no longer required.

You should also make sure if there is available memory in your system to allocate.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.