4 ms·
that depends for instance you can safely call free on NULL so you could just append. However, for some things you can only free/return resources if you success
by anfilt 6y ago
that depends for instance you can safely call free on NULL so you could just append.
However, for some things you can only free/return resources if you successfully created that resource. At which point you would need to use something like a stack.