[PATCH 1/2] ubox: fix GCC fanalyzer warnings
jo at mein.io
Mon Jul 18 01:37:28 PDT 2022
> - free(aliases);
> + if (aliases)
> + free(aliases);
This check is redundant, the free() function is guaranteed to be NULL-safe in
The free() function shall cause the space pointed to by ptr to be
deallocated; that is, made available for further allocation. If ptr is a
null pointer, no action shall occur.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the openwrt-devel