mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 05:50:26 +02:00
* gc.c (scm_gc_sweep): Properly record the size of a freed
structure. (Thanks to Michael Livshin.)
This commit is contained in:
parent
2a2d0d0e81
commit
ba3cad4d80
1 changed files with 1 additions and 1 deletions
|
@ -1113,7 +1113,7 @@ scm_gc_sweep ()
|
|||
if ((SCM_CDR (vcell) == 0) || (SCM_CDR (vcell) == 1))
|
||||
{
|
||||
SCM *p = (SCM *) SCM_GCCDR (scmptr);
|
||||
m += p[scm_struct_i_n_words] * sizeof (SCM);
|
||||
m += (p[scm_struct_i_n_words] + 7) * sizeof (SCM);
|
||||
/* I feel like I'm programming in BCPL here... */
|
||||
free ((char *) p[scm_struct_i_ptr]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue