diff options
author | Andy Wingo <wingo@pobox.com> | 2011-08-18 11:54:20 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-08-18 12:53:28 +0200 |
commit | fb031aba42d3b0d22538c50ef92a666496a8e326 (patch) | |
tree | 2cfd00b5c5d5580037116fcdac1d9a702429fb3d /libguile/strings.c | |
parent | 5261e74281b1150e3b2594c92e571d8887a4900d (diff) | |
download | guile-fb031aba42d3b0d22538c50ef92a666496a8e326.tar.gz |
fix a couple of leaks
* libguile/bytevectors.h:
* libguile/bytevectors.c (scm_c_take_gc_bytevector): Rename this
internal function, from scm_c_take_bytevector. This indicates that
unlike the other scm_take_* functions, this one takes GC-managed
memory.
* libguile/objcodes.c (scm_objcode_to_bytecode):
* libguile/vm.c (really_make_boot_program): Use
scm_gc_malloc_pointerless, not scm_malloc. Thanks to Stefan
Israelsson Tampe!
* libguile/r6rs-ports.c:
* libguile/strings.c: Adapt to renames.
Diffstat (limited to 'libguile/strings.c')
-rw-r--r-- | libguile/strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/strings.c b/libguile/strings.c index 24c82fc3e..5b15ddcb3 100644 --- a/libguile/strings.c +++ b/libguile/strings.c @@ -1489,7 +1489,7 @@ scm_from_stringn (const char *str, size_t len, const char *encoding, buf = scm_gc_malloc_pointerless (len, "bytevector"); memcpy (buf, str, len); - bv = scm_c_take_bytevector (buf, len); + bv = scm_c_take_gc_bytevector (buf, len); scm_decoding_error (__func__, errno, "input locale conversion error", bv); |