-fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 7 Mar 2013 12:30:20 +0000 (12:30 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 7 Mar 2013 12:30:20 +0000 (12:30 +0000)
src/util/crypto_ecc.c

index ea6dde647f60b3027d054e025604a4cabd7937b4..a3c92a335865ac559c8fd810b63b9c385b4124ea 100644 (file)
@@ -977,6 +977,8 @@ GNUNET_CRYPTO_ecc_sign (const struct GNUNET_CRYPTO_EccPrivateKey *key,
     LOG (GNUNET_ERROR_TYPE_WARNING,
          _("ECC signing failed at %s:%d: %s\n"), __FILE__,
          __LINE__, gcry_strerror (rc));
+    gcry_sexp_release (data);
+    return GNUNET_SYSERR;
   }
   gcry_sexp_release (data);
   ssize = gcry_sexp_sprint (result,