remove explicit NULL check before free
cover remove explicit NULL check before free
Hi,
Following patch set remove explicit NULL check before free(*ptr), because in free If ptr is NULL, no operation is performed. So no need of NULL check before free.
patches created with below coccinelle patch:-
@@
expression E;
@@
- if (E)
- free(E);
+ free(E);
Thanks
Maninder Singh
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Hi!
Patches pushed, thanks.
Signature · 8 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list