summaryrefslogtreecommitdiffstats
path: root/array.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-07-10 11:53:01 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-07-10 11:53:01 +0000
commitdf912e3540968a2a0b266e523ecc08bb2dc0ca20 (patch)
treec2c59d025e08aab048b251d1711ed655cdf115f6 /array.h
parenta3391692ad5800ca034bbbdcd803924fc4e392ee (diff)
xfree is not particularly helpful, remove it. From Thomas Adam.
Diffstat (limited to 'array.h')
-rw-r--r--array.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/array.h b/array.h
index 59ac356f..c811bf6d 100644
--- a/array.h
+++ b/array.h
@@ -109,13 +109,12 @@
} while (0)
#define ARRAY_FREE(a) do { \
- if ((a)->list != NULL) \
- xfree((a)->list); \
+ free((a)->list); \
ARRAY_INIT(a); \
} while (0)
#define ARRAY_FREEALL(a) do { \
ARRAY_FREE(a); \
- xfree(a); \
+ free(a); \
} while (0)
#endif