[Pkg-gnupg-commit] [gnupg2] 21/180: gpgscm: Clean sweeped cells.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Sat Dec 24 22:29:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 3fb9954c43425775a517060959dad01fa00238f7
Author: Justus Winter <justus at g10code.com>
Date: Wed Nov 23 12:35:15 2016 +0100
gpgscm: Clean sweeped cells.
* tests/gpgscm/scheme.c (gc): Zero typeflag and car of free cells.
Signed-off-by: Justus Winter <justus at g10code.com>
---
tests/gpgscm/scheme.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c
index 673d199..d088931 100644
--- a/tests/gpgscm/scheme.c
+++ b/tests/gpgscm/scheme.c
@@ -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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list