get_script_struct_just_created does not handle a situation when the new script creation failed.
stream_custom_script {scriptFileName} "this_script_does_not_exist.s"
int ptr = get_script_struct_just_created
ptr will point to a random script in the queue, and there is no indication of error
get_script_struct_just_created does not handle a situation when the new script creation failed.
ptrwill point to a random script in the queue, and there is no indication of error