[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/.

P j-pi at seznam.cz
Sun Oct 4 13:02:48 UTC 2015


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-do-not-check-for-NULL-before-calling-free.patch
Type: text/x-patch
Size: 3793 bytes
Desc: not available
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20151004/0d017d93/attachment.bin>


More information about the osmocom-sdr mailing list