1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-28 16:00:22 +02:00

(scm_c_port_for_each): Add a scm_remember_upto_here_1(ports) at the

end of the function to fix a GC bug.
This commit is contained in:
Rob Browning 2006-09-01 01:37:57 +00:00
parent 5b2da4cc18
commit bd83658e66

View file

@ -817,6 +817,8 @@ scm_c_port_for_each (void (*proc)(void *data, SCM p), void *data)
for (i = 0; i < n; i++)
proc (data, SCM_SIMPLE_VECTOR_REF (ports, i));
scm_remember_upto_here_1 (ports);
}
SCM_DEFINE (scm_port_for_each, "port-for-each", 1, 0, 0,