Skip to content
Snippets Groups Projects
Commit 57e7b921 authored by Hartmut Henkel's avatar Hartmut Henkel
Browse files

free(NULL) is ok.

parent f4e4f3c7
No related branches found
No related tags found
No related merge requests found
......@@ -138,8 +138,8 @@ extern double rint(double x);
T##_entry *T##_ptr, *T##_array = NULL; \
size_t T##_limit
# define xfree(a) do { if (a != NULL) { free(a); a = NULL; } } while (0)
# define dxfree(a,b) do { if (a != NULL) free(a); a = b; } while (0)
# define xfree(a) do { free(a); a = NULL; } while (0)
# define dxfree(a,b) do { free(a); a = b; } while (0)
# define strend(s) strchr(s, 0)
# define xtalloc XTALLOC
# define xretalloc XRETALLOC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment