mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
5f81f58b26
commit
0c3593b657
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue