bugfixes
[oweals/gnunet.git] / src / credential / credential_misc.c
index 7849e81e6417ed47d0e1456d1a4475fd78203dad..2575f1de8ddbed8e72e10946ec61ec188721e351 100644 (file)
@@ -20,7 +20,7 @@
 
 
 /**
- * @file credential/credential_mic.c
+ * @file credential/credential_misc.c
  * @brief Misc API for credentials
  *
  * @author Martin Schanzenbach
@@ -113,7 +113,6 @@ GNUNET_CREDENTIAL_credential_from_string (const char* s)
 /**
  * Issue an attribute to a subject
  *
- * @param handle handle to the Credential service
  * @param issuer the ego that should be used to issue the attribute
  * @param subject the subject of the attribute
  * @param attribute the name of the attribute
@@ -150,6 +149,7 @@ GNUNET_CREDENTIAL_credential_issue (const struct GNUNET_CRYPTO_EcdsaPrivateKey *
   {
     GNUNET_break (0);
     GNUNET_free (crd);
+    GNUNET_free (cred);
     return NULL;
   }
   cred->signature = crd->signature;