]> git.ipfire.org Git - thirdparty/git.git/commit - parse-options-cb.c
remove unnecessary NULL check before free(3)
authorRené Scharfe <l.s.r@web.de>
Sat, 8 Oct 2016 14:14:57 +0000 (16:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Oct 2016 18:37:41 +0000 (11:37 -0700)
commit39ea59a2570547166834ceeff9ae0c0c05748f35
treeb9874de8e3ca7b71f3ca23dd8f0a92fe210b2ec0
parent353d84c537485500989b190c5af93ad224264e2c
remove unnecessary NULL check before free(3)

free(3) handles NULL pointers just fine.  Add a semantic patch for
removing unnecessary NULL checks before calling this function, and
apply it on the code base.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/coccinelle/free.cocci [new file with mode: 0644]
parse-options-cb.c