mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-12 22:11:29 +02: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:
parent
7856e3efaa
commit
3fb9954c43
@ -1569,10 +1569,10 @@ static void gc(scheme *sc, pointer a, pointer b) {
|
|||||||
/* reclaim cell */
|
/* reclaim cell */
|
||||||
if (typeflag(p) & T_FINALIZE) {
|
if (typeflag(p) & T_FINALIZE) {
|
||||||
finalize_cell(sc, p);
|
finalize_cell(sc, p);
|
||||||
typeflag(p) = 0;
|
|
||||||
car(p) = sc->NIL;
|
|
||||||
}
|
}
|
||||||
++sc->fcells;
|
++sc->fcells;
|
||||||
|
typeflag(p) = 0;
|
||||||
|
car(p) = sc->NIL;
|
||||||
cdr(p) = sc->free_cell;
|
cdr(p) = sc->free_cell;
|
||||||
sc->free_cell = p;
|
sc->free_cell = p;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user