summaryrefslogtreecommitdiffstats
path: root/contrib/coccinelle/tests/free.c
blob: 96d4abc0c789a2dfa71b6b79e0bf1a810136a90d (plain)
1
2
3
4
5
6
7
8
9
10
11
int use_FREE_AND_NULL(int *v)
{
	free(*v);
	*v = NULL;
}

int need_no_if(int *v)
{
	if (v)
		free(v);
}