diff --git a/g10/getkey.c b/g10/getkey.c index a27c8e28a..6c14683d4 100644 --- a/g10/getkey.c +++ b/g10/getkey.c @@ -3098,6 +3098,9 @@ get_ctx_handle(GETKEY_CTX ctx) static void free_akl(struct akl *akl) { + if (! akl) + return; + if(akl->spec) free_keyserver_spec(akl->spec);