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

Fix memory leak reported by Coverity

parent 5e5a2983
No related branches found
No related tags found
No related merge requests found
...@@ -343,6 +343,7 @@ int slurm_verify_cpu_bind(const char *arg, char **cpu_bind, ...@@ -343,6 +343,7 @@ int slurm_verify_cpu_bind(const char *arg, char **cpu_bind,
while ((rc == SLURM_SUCCESS) && (tok = strsep(&p, ";"))) { while ((rc == SLURM_SUCCESS) && (tok = strsep(&p, ";"))) {
if (xstrcasecmp(tok, "help") == 0) { if (xstrcasecmp(tok, "help") == 0) {
slurm_print_cpu_bind_help(); slurm_print_cpu_bind_help();
xfree(buf);
return 1; return 1;
} }
if (!have_binding && log_binding) { if (!have_binding && log_binding) {
......
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