]> git.proxmox.com Git - mirror_frr.git/blame - tools/coccinelle/ifnullxfree.cocci
Merge pull request #8593 from idryzhov/cmd-ambiguous
[mirror_frr.git] / tools / coccinelle / ifnullxfree.cocci
CommitLineData
25af5f0d
QY
1/// NULL check before some freeing functions is not needed.
2///
3// Copyright: (C) 2014 Fabian Frederick. GPLv2.
4// Copyright: (C) 2019 Quentin Young. GPLv2.
5// Comments: -
6// Options: --no-includes --include-headers
7
8virtual patch
9
10@r2 depends on patch@
11expression E;
12expression Y;
13@@
14- if (E != NULL)
15XFREE(Y, E);