Fix general_name leak in cert:extensions()

Thanks to @zeen for identifying and @horazont for providing test
environment.
This commit is contained in:
Kim Alvefur 2019-07-07 21:28:01 +02:00
parent 041a37874b
commit daf728fec2

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