]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/free_and_replace.cocci
test: Disable LUKS devices from initramfs in QEMU tests
[thirdparty/systemd.git] / coccinelle / free_and_replace.cocci
1 @@
2 expression p, q;
3 @@
4 - free(p);
5 - p = q;
6 - q = NULL;
7 - return 0;
8 + return free_and_replace(p, q);
9 @@
10 expression p, q;
11 @@
12 - free(p);
13 - p = q;
14 - q = NULL;
15 + free_and_replace(p, q);