summaryrefslogtreecommitdiff
path: root/coccinelle/strv_free.cocci
blob: 0ad56f772f321941302f1d3d75c7211dbfe8248b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@@
expression p;
@@
- strv_free(p);
- p = NULL;
+ p = strv_free(p);
@@
expression p;
@@
- if (p)
-         strv_free(p);
- p = NULL;
+ p = strv_free(p);
@@
expression p;
@@
- if (p) {
-         strv_free(p);
-         p = NULL;
- }
+ p = strv_free(p);
@@
expression p;
@@
- if (p)
-         strv_free(p);
+ strv_free(p);