summaryrefslogtreecommitdiff
path: root/coccinelle/mfree.cocci
blob: 191cd626f52a49709111347d4e039810d532f2cb (plain)
1
2
3
4
5
6
7
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
expression p;
@@
- free(p);
- p = NULL;
+ p = mfree(p);