gpgscm: Make memory allocation failures fatal.
authorJustus Winter <justus@g10code.com>
Tue, 21 Jun 2016 10:19:07 +0000 (12:19 +0200)
committerJustus Winter <justus@g10code.com>
Tue, 21 Jun 2016 14:18:32 +0000 (16:18 +0200)
* tests/gpgscm/scheme.c (Eval_Cycle): Exit if we run out of memory.

Signed-off-by: Justus Winter <justus@g10code.com>
tests/gpgscm/scheme.c

index ff595fa..22b726f 100644 (file)
@@ -4529,7 +4529,7 @@ static void Eval_Cycle(scheme *sc, enum scheme_opcodes op) {
     }
     if(sc->no_memory) {
       fprintf(stderr,"No memory!\n");
-      return;
+      exit(1);
     }
   }
 }