3 ms·
To get rid of the hard memory leak in the second example, just call free(a) twice before returning. They don't call it pointer magic for nothing! /sarcasm
by Jare 14y ago
To get rid of the hard memory leak in the second example, just call free(a) twice before returning. They don't call it pointer magic for nothing!
/sarcasm