aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-06-30 09:46:38 +0000
committerJustus Winter <[email protected]>2016-06-30 13:31:37 +0000
commitd4ede89981c769b0626ab2b37615da1d12a3b078 (patch)
tree41aa7bed984ffd2c166d70f602f8d4dee3aa834a
parentw32: Fix build. (diff)
downloadgnupg-d4ede89981c769b0626ab2b37615da1d12a3b078.tar.gz
gnupg-d4ede89981c769b0626ab2b37615da1d12a3b078.zip
gpgscm: Use the allocator from libgcrypt.
* tests/gpgscm/main.c (main): Use the allocator from libgcrypt. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r--tests/gpgscm/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gpgscm/main.c b/tests/gpgscm/main.c
index adb4e33e7..5b3792eac 100644
--- a/tests/gpgscm/main.c
+++ b/tests/gpgscm/main.c
@@ -39,6 +39,7 @@
#include "../../common/logging.h"
#include "../../common/strlist.h"
#include "../../common/sysutils.h"
+#include "../../common/util.h"
/* The TinyScheme banner. Unfortunately, it isn't in the header
file. */
@@ -236,7 +237,7 @@ main (int argc, char **argv)
if (log_get_errorcount (0))
exit (2);
- sc = scheme_init_new ();
+ sc = scheme_init_new_custom_alloc (gcry_malloc, gcry_free);
if (! sc) {
fprintf (stderr, "Could not initialize TinyScheme!\n");
return 2;