Merge pull request #144 from Zash/fix-general-name-leak

Fix general_name leak in cert:extensions()
This commit is contained in:
Bruno Silvestre 2019-07-11 09:42:23 -03:00 committed by GitHub
commit 9f3a97e397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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] */