summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc/stdlib/malloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index 9852ba6..79ceb4b 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -1773,13 +1773,16 @@ chunk_dealloc(void *chunk, size_t size)
#ifdef MALLOC_DSS
if (opt_dss) {
if (chunk_dealloc_dss(chunk, size) == false)
- return;
+ goto RETURN;
}
if (opt_mmap)
#endif
chunk_dealloc_mmap(chunk, size);
+#ifdef MALLOC_DSS
+RETURN:
+#endif
#ifdef MALLOC_STATS
stats_chunks.curchunks -= (size / chunksize);
#endif
OpenPOWER on IntegriCloud