aboutsummaryrefslogtreecommitdiffstats
path: root/src/gmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmalloc.c')
-rw-r--r--src/gmalloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c
index 977abbdbbbd..ab1dfd07db2 100644
--- a/src/gmalloc.c
+++ b/src/gmalloc.c
@@ -51,12 +51,12 @@ extern "C"
51 51
52 52
53/* Allocate SIZE bytes of memory. */ 53/* Allocate SIZE bytes of memory. */
54extern void *malloc (size_t size); 54extern void *malloc (size_t size) ATTRIBUTE_MALLOC_SIZE ((1));
55/* Re-allocate the previously allocated block 55/* Re-allocate the previously allocated block
56 in ptr, making the new block SIZE bytes long. */ 56 in ptr, making the new block SIZE bytes long. */
57extern void *realloc (void *ptr, size_t size); 57extern void *realloc (void *ptr, size_t size) ATTRIBUTE_ALLOC_SIZE ((2));
58/* Allocate NMEMB elements of SIZE bytes each, all initialized to 0. */ 58/* Allocate NMEMB elements of SIZE bytes each, all initialized to 0. */
59extern void *calloc (size_t nmemb, size_t size); 59extern void *calloc (size_t nmemb, size_t size) ATTRIBUTE_MALLOC_SIZE ((1,2));
60/* Free a block allocated by `malloc', `realloc' or `calloc'. */ 60/* Free a block allocated by `malloc', `realloc' or `calloc'. */
61extern void free (void *ptr); 61extern void free (void *ptr);
62 62