Skip to content
Snippets Groups Projects
Commit 4967e16e authored by Moe Jette's avatar Moe Jette
Browse files

Plug memory leak when reading switch state save file.

parent 73e48525
No related branches found
No related tags found
No related merge requests found
...@@ -283,6 +283,7 @@ int switch_p_libstate_restore (char *dir_name) ...@@ -283,6 +283,7 @@ int switch_p_libstate_restore (char *dir_name)
if (buffer) if (buffer)
free_buf(buffer); free_buf(buffer);
xfree(data); xfree(data);
xfree(ver_str);
if (error_code == SLURM_SUCCESS) if (error_code == SLURM_SUCCESS)
error_code = qsw_init(old_state); error_code = qsw_init(old_state);
......
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