Fix memory leak when !defined(HAVE_GPGME) and !defined(HAVE_OPENSSL).