mirror of git://git.gnupg.org/gnupg.git
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:
parent
dbcb342eaf
commit
d4ede89981
|
@ -39,6 +39,7 @@
|
||||||
#include "../../common/logging.h"
|
#include "../../common/logging.h"
|
||||||
#include "../../common/strlist.h"
|
#include "../../common/strlist.h"
|
||||||
#include "../../common/sysutils.h"
|
#include "../../common/sysutils.h"
|
||||||
|
#include "../../common/util.h"
|
||||||
|
|
||||||
/* The TinyScheme banner. Unfortunately, it isn't in the header
|
/* The TinyScheme banner. Unfortunately, it isn't in the header
|
||||||
file. */
|
file. */
|
||||||
|
@ -236,7 +237,7 @@ main (int argc, char **argv)
|
||||||
if (log_get_errorcount (0))
|
if (log_get_errorcount (0))
|
||||||
exit (2);
|
exit (2);
|
||||||
|
|
||||||
sc = scheme_init_new ();
|
sc = scheme_init_new_custom_alloc (gcry_malloc, gcry_free);
|
||||||
if (! sc) {
|
if (! sc) {
|
||||||
fprintf (stderr, "Could not initialize TinyScheme!\n");
|
fprintf (stderr, "Could not initialize TinyScheme!\n");
|
||||||
return 2;
|
return 2;
|
||||||
|
|
Loading…
Reference in New Issue