We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70807e2 commit 2c35618Copy full SHA for 2c35618
src/jv_alloc.c
@@ -111,7 +111,7 @@ static void memory_exhausted() {
111
tsd_init_nomem_handler();
112
113
nomem_handler = pthread_getspecific(nomem_handler_key);
114
- if (nomem_handler)
+ if (nomem_handler && nomem_handler->handler)
115
nomem_handler->handler(nomem_handler->data); // Maybe handler() will longjmp() to safety
116
// Or not
117
fprintf(stderr, "jq: error: cannot allocate memory\n");
0 commit comments