public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [Patch 0/8] remove explicit NULL check before free
@ 2015-06-10  7:01 Maninder Singh
  2015-06-10 14:05 ` Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Maninder Singh @ 2015-06-10  7:01 UTC (permalink / raw)
  To: ltp-list

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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LTP] [Patch 0/8] remove explicit NULL check before free
  2015-06-10  7:01 [LTP] [Patch 0/8] remove explicit NULL check before free Maninder Singh
@ 2015-06-10 14:05 ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2015-06-10 14:05 UTC (permalink / raw)
  To: Maninder Singh; +Cc: ltp-list

Hi!
Patches pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-10 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-10  7:01 [LTP] [Patch 0/8] remove explicit NULL check before free Maninder Singh
2015-06-10 14:05 ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox