Skip to contentSkip to conversation

remove explicit NULL check before free

PATCH In review Maninder Singh 2 participants 2 messages Jun 10, 2015

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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