mirror of
https://github.com/git/git
synced 2024-08-28 03:59:25 +00: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>
6 lines
40 B
Plaintext
6 lines
40 B
Plaintext
@@
|
|
expression E;
|
|
@@
|
|
- if (E)
|
|
free(E);
|