ref: 9b2d3ed37a9d58d8ea4692858b47a9f1b03d7e65
parent: 59ed389a6eb7d405eb44d9644d69993e814dccdf
author: cinap_lenrek <[email protected]>
date: Mon Mar 13 14:56:52 EDT 2017
gs: fix dangleing pointer crash with "lock" (ghostscript Bug 697204)
--- a/sys/src/cmd/gs/src/zcontext.c
+++ b/sys/src/cmd/gs/src/zcontext.c
@@ -953,6 +953,7 @@
return_error(e_VMerror);
plock->holder_index = 0;
plock->waiting.head_index = plock->waiting.tail_index = 0;
+ plock->scheduler = NULL;
push(1);
make_istruct(op, a_all, plock);
return 0;