diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/safe-alloc.c | 5 | ||||
-rw-r--r-- | lib/safe-alloc.h | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/safe-alloc.c b/lib/safe-alloc.c index fca8754c8c..90c81be2aa 100644 --- a/lib/safe-alloc.c +++ b/lib/safe-alloc.c @@ -23,12 +23,13 @@ #include <config.h> +/* Specification. */ +#include "safe-alloc.h" + #include <stdlib.h> #include <stddef.h> #include <errno.h> -#include "safe-alloc.h" - /* Return 1 if an array of N objects, each of size S, cannot exist due to size arithmetic overflow. S must be positive and N must be diff --git a/lib/safe-alloc.h b/lib/safe-alloc.h index 1b7847add5..3fa3f2eed8 100644 --- a/lib/safe-alloc.h +++ b/lib/safe-alloc.h @@ -1,5 +1,5 @@ /* - * memory.c: safer memory allocation + * safe-alloc.h: safer memory allocation * * Copyright (C) 2009 Free Software Foundation, Inc. * @@ -108,7 +108,7 @@ safe_alloc_realloc_n (void *ptrptr, size_t size, size_t count) # define FREE(ptr) \ do \ { \ - free(ptr); \ + free (ptr); \ (ptr) = NULL; \ } \ while(0) |