Fix memory leak

This commit is contained in:
Bruno Silvestre 2019-08-16 09:48:53 -03:00
parent de63f21f63
commit 8dafea410f

View File

@ -371,7 +371,9 @@ 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] */
i++; /* Next extension */
}