summaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/main.c
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2016-06-30 11:46:38 +0200
committerJustus Winter <justus@g10code.com>2016-06-30 15:31:37 +0200
commitd4ede89981c769b0626ab2b37615da1d12a3b078 (patch)
tree41aa7bed984ffd2c166d70f602f8d4dee3aa834a /tests/gpgscm/main.c
parentw32: Fix build. (diff)
downloadgnupg2-d4ede89981c769b0626ab2b37615da1d12a3b078.tar.xz
gnupg2-d4ede89981c769b0626ab2b37615da1d12a3b078.zip
gpgscm: Use the allocator from libgcrypt.
* tests/gpgscm/main.c (main): Use the allocator from libgcrypt. Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'tests/gpgscm/main.c')
-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;