Use free with ruby_dtoa

In ae0ceafb0c ruby_dtoa was switched to
use malloc instead of xmalloc, which means that consumers should be
using free instead of xfree. Otherwise we will artificially shrink
oldmalloc_increase_bytes.
This commit is contained in:
John Hawthorn 2023-12-06 19:29:06 -08:00
parent 5f81f58b26
commit 0c3593b657
3 changed files with 3 additions and 3 deletions

View file

@ -466,7 +466,7 @@ w_float(double d, struct dump_arg *arg)
memcpy(buf + len, p, digs);
len += digs;
}
xfree(p);
free(p);
w_bytes(buf, len, arg);
}
}