Use on-stack or GC-managed memory in 'search-path'.
authorLudovic Courtès <ludo@gnu.org>
Fri, 31 Oct 2014 21:53:04 +0000 (22:53 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 31 Oct 2014 23:48:11 +0000 (00:48 +0100)
commita7bbba05838cabe2294f498e7008e1c51db6d664
tree8f174dd1a994bfebfa7cb4482429669a1bb1acfe
parent30c5982a9548a0ca0ea46111beb490f06d74a40a
Use on-stack or GC-managed memory in 'search-path'.

* libguile/load.c (stringbuf_free): Remove.
  (stringbuf_grow): Use 'scm_gc_malloc_pointerless' instead of 'scm_realloc'.
  (search_path): Use stack-allocated INITIAL_BUFFER instead of
  'scm_malloc'.  Remove use of 'stringbuf_free'.
libguile/load.c