mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 10:13:34 +08:00
d7d6195953
It makes sense that these should be one file instead of two, as they both involve mfree()
37 lines
478 B
Plaintext
37 lines
478 B
Plaintext
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
@@
|
|
/* Avoid running this transformation on the mfree function itself */
|
|
position p : script:python() { p[0].current_element != "mfree" };
|
|
expression e;
|
|
@@
|
|
- free@p(e);
|
|
- return NULL;
|
|
+ return mfree(e);
|
|
|
|
@@
|
|
expression p;
|
|
@@
|
|
- free(p);
|
|
- p = NULL;
|
|
+ p = mfree(p);
|
|
|
|
@@
|
|
expression p;
|
|
@@
|
|
- if (p)
|
|
- free(p);
|
|
+ free(p);
|
|
|
|
@@
|
|
expression p;
|
|
@@
|
|
- if (p)
|
|
- mfree(p);
|
|
+ free(p);
|
|
|
|
@@
|
|
expression p;
|
|
@@
|
|
- mfree(p);
|
|
+ free(p);
|