How to destroy dynamically allocated memory (memory allocated by malloc()) with out using free() ?