gpg: Don't forget to free some memory.
authorNeal H. Walfield <neal@g10code.com>
Mon, 19 Oct 2015 08:35:38 +0000 (10:35 +0200)
committerNeal H. Walfield <neal@g10code.com>
Mon, 19 Oct 2015 08:35:38 +0000 (10:35 +0200)
* g10/tofu.c (tofu_register): Free SIG_DIGEST before returning.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
g10/tofu.c

index 2d4c738..6510927 100644 (file)
@@ -2248,6 +2248,7 @@ tofu_register (const byte *fingerprint_bin, const char *user_id,
   xfree (fingerprint);
   if (dbs)
     closedbs (dbs);
+  xfree (sig_digest);
 
   return trust_level;
 }