1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

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

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;
}