Rivoreo Source Code Repositories
src.rivoreo.one
/
systemd-stable
/
v239-40
/
.
/
coccinelle
/
free_and_replace.cocci
blob: 9dcdbf4d42afabf84bd16470fde5b268d22b4a9f [
file
] [
log
] [
blame
] [
raw
]
@@
expression p
,
q
;
@@
-
free
(
p
);
-
p
=
q
;
-
q
=
NULL
;
-
return
0
;
+
return
free_and_replace
(
p
,
q
);
@@
expression p
,
q
;
@@
-
free
(
p
);
-
p
=
q
;
-
q
=
NULL
;
+
free_and_replace
(
p
,
q
);