[Pkg-gnupg-commit] [gnupg2] 74/160: gpgscm: Use the allocator from libgcrypt.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Jul 15 09:36:37 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch upstream
in repository gnupg2.

commit d4ede89981c769b0626ab2b37615da1d12a3b078
Author: Justus Winter <justus at g10code.com>
Date:   Thu Jun 30 11:46:38 2016 +0200

    gpgscm: Use the allocator from libgcrypt.
    
    * tests/gpgscm/main.c (main): Use the allocator from libgcrypt.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 tests/gpgscm/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/gpgscm/main.c b/tests/gpgscm/main.c
index adb4e33..5b3792e 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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list