mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-03 14:00:18 +01:00
This patch has been generated by the following Coccinelle semantic patch:
// Remove useless checks for NULL before freeing
//
// free (NULL) is a no-op, so there is no need to avoid it
@@
expression E;
@@
+ free (E);
+ E = NULL;
- if (unlikely (E != NULL)) {
- free(E);
(
- E = NULL;
|
- E = 0;
)
...
- }
@@
expression E;
@@
+ free (E);
- if (unlikely (E != NULL)) {
- free (E);
- }
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| cairo-trace.in | ||
| COPYING | ||
| COPYING-GPL-3 | ||
| lookup-symbol.c | ||
| lookup-symbol.h | ||
| Makefile.am | ||
| trace.c | ||