[PATCH] do not check for NULL before calling free

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

Dimitri Stolnikov horiz0n at gmx.net
Sun Jan 10 21:52:06 UTC 2016


Hi Jiri, thanks for the patch, i've applied it without the  
"find_package(Gnuradio 3.8 REQUIRED)" line.

Best regards,
Dimitri


On Sun, 04 Oct 2015 15:02:48 +0200, P <j-pi at seznam.cz> wrote:

> Checking if variable is not NULL before calling free() is not effective,
> because free() already does this.
>
>   - waste instruction and/or compiler time
>   - more lines of code than necessary
>
>
> This patch removes those checks.



More information about the osmocom-sdr mailing list