Skip to content
Snippets Groups Projects
Commit b301d64b authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Leak the state intentionally, since it can only be freed from

the main thread. But we are dying anyway.
parent 2013297e
No related branches found
No related tags found
No related merge requests found
......@@ -6977,6 +6977,12 @@ static void invoke_system_call(
error_out:
script_path = strdup(state->config->script_path);
/*
* To free resources, we need to free the state. But this can only
* be done from the main thread, but this is the syscall thread.
*
* So not calling state_free(state, 1);
*/
state_free(state, 1);
die("%s:%d: runtime error in %s call: %s\n",
script_path, event->line_number,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment