diff options
Diffstat (limited to 'make_malloc.h')
| -rw-r--r-- | make_malloc.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/make_malloc.h b/make_malloc.h index 551495fb6266..4dacc924c40f 100644 --- a/make_malloc.h +++ b/make_malloc.h @@ -1,4 +1,4 @@ -/* $NetBSD: make_malloc.h,v 1.13 2020/11/10 00:32:12 rillig Exp $ */ +/* $NetBSD: make_malloc.h,v 1.15 2020/12/30 10:03:16 rillig Exp $ */ /*- * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -41,14 +41,16 @@ char *bmake_strldup(const char *, size_t); char *bmake_strsedup(const char *, const char *); -/* Thin wrapper around free(3) to avoid the extra function call in case +/* + * Thin wrapper around free(3) to avoid the extra function call in case * p is NULL, to save a few machine instructions. * * The case of a NULL pointer happens especially often after Var_Value, - * since only environment variables need to be freed, but not others. */ + * since only environment variables need to be freed, but not others. + */ MAKE_INLINE void bmake_free(void *p) { - if (p != NULL) - free(p); + if (p != NULL) + free(p); } |
