Use `scm_gc_malloc ()' when allocating hook entries.
authorLudovic Courtès <ludo@gnu.org>
Sun, 18 Jan 2009 15:13:31 +0000 (16:13 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 18 Jan 2009 15:13:31 +0000 (16:13 +0100)
commit1a531c80b2d4d57ae80b0515e66e03efa18bb938
treed6f987e2fe1a385c9209e49065cfc825ff9d9d30
parent2a77682322b3d466ac16ce4bd1244d29085a3555
Use `scm_gc_malloc ()' when allocating hook entries.

* libguile/hooks.c (hook_entry_gc_hint): New.
  (scm_c_hook_add): Use `scm_gc_malloc ()' instead of `scm_malloc ()'.
  (scm_c_hook_remove): Don't explicitly free(3) the entry, let the GC do
  its job.
libguile/hooks.c