Re: [hackers] [sent] [PATCH 1/3] sent.c: Drop unnecessary NULL checks

2022-07-04 Thread Antonio Quartulli
Hi, On 04/07/2022 10:19, NRK wrote: Hi Laslo, On Sun, Jun 26, 2022 at 11:16:32PM +0200, Laslo Hunhold wrote: come on, it is general knowledge that free() accepts NULL arguments. I don't think that's a true. If it were general knowledge then we wouldn't see the pattern of `if (ptr)

Re: [hackers] [sent] [PATCH 1/3] sent.c: Drop unnecessary NULL checks

2022-07-04 Thread NRK
Hi Laslo, On Sun, Jun 26, 2022 at 11:16:32PM +0200, Laslo Hunhold wrote: > come on, it is general knowledge that free() accepts NULL arguments. I don't think that's a true. If it were general knowledge then we wouldn't see the pattern of `if (ptr) free(ptr)` in the code to begin with. And