public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Maninder Singh <maninder1.s@samsung.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [Patch 0/8] remove explicit NULL check before free
Date: Wed, 10 Jun 2015 07:01:32 +0000 (GMT)	[thread overview]
Message-ID: <993022606.810141433919692343.JavaMail.weblogic@epmlwas05b> (raw)

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

             reply	other threads:[~2015-06-10  7:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-10  7:01 Maninder Singh [this message]
2015-06-10 14:05 ` [LTP] [Patch 0/8] remove explicit NULL check before free Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=993022606.810141433919692343.JavaMail.weblogic@epmlwas05b \
    --to=maninder1.s@samsung.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox