repo.or.cz
/
git
/
gitster.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
worktree: simplify incompatibility message for --orphan and commit-ish
[git/gitster.git]
/
contrib
/
coccinelle
/
free.cocci
blob
6fb9eb6e88379a8897ca65057af3291e90a15be3
1
@@
2
expression E;
3
@@
4
- if (E)
5
(
6
free(E);
7
|
8
free_commit_list(E);
9
)
10
11
@@
12
expression E;
13
@@
14
- if (!E)
15
(
16
free(E);
17
|
18
free_commit_list(E);
19
)
20
21
@@
22
expression E;
23
@@
24
- free(E);
25
+ FREE_AND_NULL(E);
26
- E = NULL;
27
28
@@
29
expression E;
30
@@
31
- if (E)
32
- {
33
free_commit_list(E);
34
E = NULL;
35
- }
36
37
@@
38
expression E;
39
statement S;
40
@@
41
- if (E) {
42
+ if (E)
43
S
44
free_commit_list(E);
45
- }