BUG/MINOR: ssl: Memory leak of AUTHORITY_KEYID struct when loading issuer

When calling ssl_get0_issuer_chain, if akid is not NULL but its keyid
is, then the AUTHORITY_KEYID is not freed.

This patch can be backported to all stable branches.
diff --git a/src/ssl_sock.c b/src/ssl_sock.c
index 2f76bb9..801405b 100644
--- a/src/ssl_sock.c
+++ b/src/ssl_sock.c
@@ -7231,8 +7231,8 @@
 				break;
 			}
 		}
-		AUTHORITY_KEYID_free(akid);
 	}
+	AUTHORITY_KEYID_free(akid);
 	return issuer;
 }