On the best way to NULL out a pointer after free: A macro or a function passed a pointer to a pointer
realrichardsharpe at gmail.com
Tue Jul 5 18:21:59 UTC 2016
Are there many open source projects out there that use the SAFE_FREE
approach other than Samba.
I am currently embroiled in a discussion on which of these is a better
approach. That is, a simple one-line macro like SAFE_FREE or a
function that takes a pointer to a pointer?
The pointer to the pointer approach seems somehow obscene in this case.
More information about the samba-technical