--- freeciv/common/mem.h.orig Fri Aug 17 18:04:27 2001 +++ freeciv/common/mem.h Fri Aug 17 18:01:51 2001 @@ -17,8 +17,8 @@ #include /* size_t; actually stddef.h, but stdlib.h might be more reliable? --dwp */ -/* fc_malloc, fc_realloc, fc_calloc: - * fc_ stands for freeciv; the return value is checked, +/* fc_malloc, fc_realloc, fc_calloc, fc_free: + * fc_ stands for freeciv; the return value and parameters are checked, * and freeciv-specific processing occurs if it is NULL: * a log message, possibly cleanup, and ending with exit(1) */ @@ -29,6 +29,8 @@ __LINE__, __FILE__) #define fc_calloc(n,esz) fc_real_calloc((n), (esz), "calloc", \ __LINE__, __FILE__) +#define fc_free(ptr) fc_real_free(((ptr), "free", \ + __LINE__, __FILE__) #define mystrdup(str) real_mystrdup((str), "strdup", \ __LINE__, __FILE__)