git/contrib/coccinelle/tests/free.c

12 lines
104 B
C

int use_FREE_AND_NULL(int *v)
{
free(*v);
*v = NULL;
}
int need_no_if(int *v)
{
if (v)
free(v);
}