mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 06:25:25 +03:00
525d3cc746
And set_free() too. Another Coccinelle patch.
55 lines
658 B
Plaintext
55 lines
658 B
Plaintext
@@
|
|
expression p;
|
|
@@
|
|
- set_free(p);
|
|
- p = NULL;
|
|
+ p = set_free(p);
|
|
@@
|
|
expression p;
|
|
@@
|
|
- if (p)
|
|
- set_free(p);
|
|
- p = NULL;
|
|
+ p = set_free(p);
|
|
@@
|
|
expression p;
|
|
@@
|
|
- if (p) {
|
|
- set_free(p);
|
|
- p = NULL;
|
|
- }
|
|
+ p = set_free(p);
|
|
@@
|
|
expression p;
|
|
@@
|
|
- if (p)
|
|
- set_free(p);
|
|
+ set_free(p);
|
|
@@
|
|
expression p;
|
|
@@
|
|
- hashmap_free(p);
|
|
- p = NULL;
|
|
+ p = hashmap_free(p);
|
|
@@
|
|
expression p;
|
|
@@
|
|
- if (p)
|
|
- hashmap_free(p);
|
|
- p = NULL;
|
|
+ p = hashmap_free(p);
|
|
@@
|
|
expression p;
|
|
@@
|
|
- if (p) {
|
|
- hashmap_free(p);
|
|
- p = NULL;
|
|
- }
|
|
+ p = hashmap_free(p);
|
|
@@
|
|
expression p;
|
|
@@
|
|
- if (p)
|
|
- hashmap_free(p);
|
|
+ hashmap_free(p);
|