gpg: Fix memory leak while running --check-trustdb.