In libtwolame/mem.h I see the macro (useful, indeed) TWOLAME_FREE which is defined as follows:
if(ptr!=NULL) { free(ptr); ptr=NULL; }
Now, what's the point in setting to NULL a parameter passed as value?
The caller will never see the change.
I don't get this.
In libtwolame/mem.h I see the macro (useful, indeed) TWOLAME_FREE which is defined as follows:
if(ptr!=NULL) { free(ptr); ptr=NULL; }
Now, what's the point in setting to NULL a parameter passed as value? The caller will never see the change. I don't get this.