Skip to content

Commit 922ac06

Browse files
committed
FIX: use handle's context path access only if the handle is still in use (not already released)
1 parent 41a2658 commit 922ac06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/t-handle.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ extern void RXI_To_Value(REBVAL *val, RXIARG arg, REBCNT type); // f-extension.c
114114

115115
sym = VAL_WORD_CANON(arg);
116116

117-
if (IS_CONTEXT_HANDLE(data)) {
117+
if (IS_CONTEXT_HANDLE(data) && IS_USED_HOB(VAL_HANDLE_CTX(data))) {
118118
RXIARG xarg;
119119
REBCNT type;
120120
REBCNT idx = VAL_HANDLE_CTX(data)->index;

0 commit comments

Comments
 (0)