gpgscm: Use the allocator from libgcrypt.

* tests/gpgscm/main.c (main): Use the allocator from libgcrypt.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-06-30 11:46:38 +02:00
parent dbcb342eaf
commit d4ede89981
1 changed files with 2 additions and 1 deletions

View File

@ -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;