On Sun, 26 Jun 2022 21:53:49 +0300
Greg Minshall <minsh...@acm.org> wrote:

Dear Greg,

> for what it's worth, i'd probably code with the checks, so as to avoid
> future code editors (including myself) doing a double-take, thinking,
> "hmm, did the author consider that case?".  (though, of course, you
> did that same -- if opposite -- double-take when you saw that code.)

come on, it is general knowledge that free() accepts NULL arguments.
The extra checks just add more cruft.

With best regards

Laslo

Reply via email to