gpgscm: Recover cells used to maintain interpreter state.
authorJustus Winter <justus@g10code.com>
Thu, 10 Nov 2016 13:02:11 +0000 (14:02 +0100)
committerJustus Winter <justus@g10code.com>
Thu, 10 Nov 2016 13:57:07 +0000 (14:57 +0100)
commite0cbd3389e2dd6ec19ee3a4c7bad81fa0f1907f5
treea648a67a088a8c53766af338aa068d87beac67e6
parentd3a98ff5bc972a4c9b01b9e5338a4a59b5b4ac48
gpgscm: Recover cells used to maintain interpreter state.

* tests/gpgscm/scheme.c (free_cell): New function.
(free_cons): Likewise.
(_s_return): Use the new function to recover cells used to save the
state of the interpreter in 's_save'.  This reduces the need to do a
garbage collection considerably.

Signed-off-by: Justus Winter <justus@g10code.com>
tests/gpgscm/scheme.c