interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / tools / coccinelle / free.cocci

37 lines · 313 bytes Raw Blame History
1@@
2expression E;
3@@
4- if (E)
5(
6 free(E);
7|
8 commit_list_free(E);
9|
10 FREE_AND_NULL(E);
11)
12
13@@
14expression E;
15@@
16- free(E);
17+ FREE_AND_NULL(E);
18- E = NULL;
19
20@@
21expression E;
22@@
23- if (E)
24- {
25 commit_list_free(E);
26 E = NULL;
27- }
28
29@@
30expression E;
31statement S;
32@@
33- if (E) {
34+ if (E)
35 S
36 commit_list_free(E);
37- }