2016-10-08 16:14:57 +02:00
|
|
|
@@
|
|
|
|
expression E;
|
|
|
|
@@
|
|
|
|
- if (E)
|
|
|
|
free(E);
|
2017-02-11 14:58:44 +01:00
|
|
|
|
|
|
|
@@
|
|
|
|
expression E;
|
|
|
|
@@
|
|
|
|
- if (!E)
|
|
|
|
free(E);
|
2017-06-16 01:15:45 +02:00
|
|
|
|
|
|
|
@@
|
|
|
|
type T;
|
|
|
|
T *ptr;
|
|
|
|
@@
|
|
|
|
- free(ptr);
|
|
|
|
- ptr = NULL;
|
|
|
|
+ FREE_AND_NULL(ptr);
|
2017-06-16 01:15:47 +02:00
|
|
|
|
|
|
|
@@
|
|
|
|
expression E;
|
|
|
|
@@
|
|
|
|
- free(E);
|
|
|
|
- E = NULL;
|
|
|
|
+ FREE_AND_NULL(E);
|