diff options
Diffstat (limited to 'winsup/cygwin/malloc.cc')
-rw-r--r-- | winsup/cygwin/malloc.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/malloc.cc b/winsup/cygwin/malloc.cc index 383a590..7c85bd6 100644 --- a/winsup/cygwin/malloc.cc +++ b/winsup/cygwin/malloc.cc @@ -3744,6 +3744,7 @@ void fREe(mem) Void_t* mem; mchunkptr bck; /* misc temp for linking */ mchunkptr fwd; /* misc temp for linking */ + check_malloc_state(); /* free(0) has no effect */ if (mem != 0) { p = mem2chunk(mem); @@ -3878,6 +3879,7 @@ void fREe(mem) Void_t* mem; #endif } } + check_malloc_state(); } /* |