ref: 9bd3edcbcd1e63118a2f2311e9b8306e1f7dcc6b
parent: ddd770933bded000ad332f551892e061498e74d1
author: Tor Andersson <tor.andersson@artifex.com>
date: Thu Aug 10 13:04:40 EDT 2023
Fix bug when cleaning up after allocation error.
--- a/jsstate.c
+++ b/jsstate.c
@@ -309,7 +309,7 @@
J->stack = alloc(actx, NULL, JS_STACKSIZE * sizeof *J->stack);
if (!J->stack) {
- alloc(actx, NULL, 0);
+ alloc(actx, J, 0);
return NULL;
}