aboutsummaryrefslogtreecommitdiffstats
path: root/ext/zlib/zlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r--ext/zlib/zlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 73f3f7c5f0..1b651d1c08 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -679,7 +679,7 @@ zstream_expand_buffer_without_gvl(struct zstream *z)
len = z->buf_filled + inc;
- new_str = realloc(RSTRING(z->buf)->as.heap.ptr, len + 1);
+ new_str = ruby_xrealloc(RSTRING(z->buf)->as.heap.ptr, len + 1);
if (!new_str)
return 0;