This is my code:
#include #include #include void getinfo(unsigned int a, unsigned int b, char **pStr); in
You don't have to free dynamically allocated memory before exiting. The OS will make all that memory available to the next process.