/ Published in: C
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.
You should also make sure if there is available memory in your system to allocate.