gpgscm: Clean sweeped cells.

* tests/gpgscm/scheme.c (gc): Zero typeflag and car of free cells.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-11-23 12:35:15 +01:00
parent 7856e3efaa
commit 3fb9954c43
1 changed files with 2 additions and 2 deletions

View File

@ -1569,10 +1569,10 @@ static void gc(scheme *sc, pointer a, pointer b) {
/* reclaim cell */
if (typeflag(p) & T_FINALIZE) {
finalize_cell(sc, p);
typeflag(p) = 0;
car(p) = sc->NIL;
}
++sc->fcells;
typeflag(p) = 0;
car(p) = sc->NIL;
cdr(p) = sc->free_cell;
sc->free_cell = p;
}