contrib / coccinelle / free.coccion commit Merge branch 'bw/repo-object' (85ce4a6)
   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);