[rsyslog] advise request: free(NULL)
rgerhards at hq.adiscon.com
Wed Apr 22 13:52:47 CEST 2009
as Luis Fernando pointed out in a mail, free(NULL) is defined to be valid in
C. So far, I still guarded this sequence as follows:
if(p != NULL)
Because I had "a bad feeling" about portability. I begin to think that this
may be overly conservative. If it is actually not needed, code cleanup may be
useful (it is always a bad idea to do things more complex than necessary...).
Comments on the issue would be appreciated.
More information about the rsyslog