summaryrefslogtreecommitdiff
path: root/storage/innobase/include/ut0mem.h
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/include/ut0mem.h')
-rw-r--r--storage/innobase/include/ut0mem.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/innobase/include/ut0mem.h b/storage/innobase/include/ut0mem.h
index cf41cba4643..57dfb08f41c 100644
--- a/storage/innobase/include/ut0mem.h
+++ b/storage/innobase/include/ut0mem.h
@@ -113,12 +113,13 @@ ut_test_malloc(
ulint n); /*!< in: try to allocate this many bytes */
#endif /* !UNIV_HOTBACKUP */
/**********************************************************************//**
-Frees a memory block allocated with ut_malloc. */
+Frees a memory block allocated with ut_malloc. Freeing a NULL pointer is
+a nop. */
UNIV_INTERN
void
ut_free(
/*====*/
- void* ptr); /*!< in, own: memory block */
+ void* ptr); /*!< in, own: memory block, can be NULL */
#ifndef UNIV_HOTBACKUP
/**********************************************************************//**
Implements realloc. This is needed by /pars/lexyy.c. Otherwise, you should not