chiark / gitweb /
sd-login: read list of uids of sessions from UIDS not ACTIVE_SESSIONS
[elogind.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);