contrib / coccinelle / free.coccion commit coccinelle: add a rule to make "expression" code use FREE_AND_NULL() (1b83d12)
   1@@
   2expression E;
   3@@
   4- if (E)
   5  free(E);
   6
   7@@
   8expression E;
   9@@
  10- if (!E)
  11  free(E);
  12
  13@@
  14type T;
  15T *ptr;
  16@@
  17- free(ptr);
  18- ptr = NULL;
  19+ FREE_AND_NULL(ptr);
  20
  21@@
  22expression E;
  23@@
  24- free(E);
  25- E = NULL;
  26+ FREE_AND_NULL(E);