From dcd385e615854093edaabe6d6953923c7ff1fb9b Mon Sep 17 00:00:00 2001 From: Bruno Silvestre Date: Fri, 16 Aug 2019 10:15:42 -0300 Subject: [PATCH] Fix memory leak --- src/x509.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/x509.c b/src/x509.c index 07635ba..e9f036c 100644 --- a/src/x509.c +++ b/src/x509.c @@ -371,6 +371,7 @@ int meth_extensions(lua_State* L) /* not supported */ break; } + GENERAL_NAME_free(general_name); } sk_GENERAL_NAME_free(values); lua_pop(L, 1); /* ret[oid] */