mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
![René Scharfe](/assets/img/avatar_default.png)
Add a semantic patch for removing checks that cause free(3) to only be called with a NULL pointer, as that must be a programming mistake. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 lines
82 B
Plaintext
12 lines
82 B
Plaintext
@@
|
|
expression E;
|
|
@@
|
|
- if (E)
|
|
free(E);
|
|
|
|
@@
|
|
expression E;
|
|
@@
|
|
- if (!E)
|
|
free(E);
|