gpg: Don't accidentally free UTK_LIST.
authorNeal H. Walfield <neal@g10code.com>
Wed, 21 Oct 2015 11:36:12 +0000 (13:36 +0200)
committerNeal H. Walfield <neal@g10code.com>
Wed, 21 Oct 2015 11:45:49 +0000 (13:45 +0200)
* g10/trustdb.c (validate_keys): Don't free UTK_LIST.

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

index 022131a..e2f1935 100644 (file)
@@ -2097,7 +2097,8 @@ validate_keys (int interactive)
  leave:
   keydb_release (kdb);
   release_key_array (keys);
-  release_key_items (klist);
+  if (klist != utk_list)
+    release_key_items (klist);
   release_key_hash_table (full_trust);
   release_key_hash_table (used);
   release_key_hash_table (stored);