mirror of
https://github.com/git/git.git
synced 2024-10-31 06:17:56 +01:00
39ea59a257
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>
5 lines
40 B
Text
5 lines
40 B
Text
@@
|
|
expression E;
|
|
@@
|
|
- if (E)
|
|
free(E);
|