gpg: Close cached keydb handle in gpgv.
authorJustus Winter <justus@g10code.com>
Wed, 21 Jun 2017 13:51:10 +0000 (15:51 +0200)
committerJustus Winter <justus@g10code.com>
Wed, 21 Jun 2017 13:51:10 +0000 (15:51 +0200)
* g10/gpgv.c (main): Close cached handle.

Fixes-commit: 5556eca5acd46983bff0b38a1ffbc2f07fbaba9f
Signed-off-by: Justus Winter <justus@g10code.com>
g10/gpgv.c

index ddbcd7d..fb274b3 100644 (file)
@@ -270,6 +270,7 @@ main( int argc, char **argv )
   if ((rc = verify_signatures (ctrl, argc, argv)))
     log_error("verify signatures failed: %s\n", gpg_strerror (rc) );
 
+  keydb_release (ctrl->cached_getkey_kdb);
   xfree (ctrl);
 
   /* cleanup */