Skip to content
Snippets Groups Projects
Commit a8026e5b authored by Morris Jette's avatar Morris Jette
Browse files

lua memory leak fix

Close old lua file once a new one is loaded
parent 79ce3dd7
No related branches found
No related tags found
No related merge requests found
......@@ -1163,6 +1163,8 @@ static int _load_script(void)
return rc;
}
if (L_orig)
lua_close(L_orig);
lua_script_last_loaded = time(NULL);
return SLURM_SUCCESS;
}
......
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