Skip to content
Snippets Groups Projects
Commit 8343365f authored by Danny Auble's avatar Danny Auble
Browse files

Fix double free issue when updating QOS with sacctmgr.

Fix double free issue from commit 3851f619

Same issue from fixed in a different spot with b19637bd.

Bug 3617
parent b9eee851
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,7 @@ documents those changes that are of interest to users and administrators.
-- node_features/knl_cray plugin - Fix memory leak.
-- Fix wrong cpu_per_task count issue on heterogeneous system when dealing with
steps.
-- Fix double free issue when updating QOS with sacctmgr.
* Changes in Slurm 17.02.1-2
============================
......
......@@ -880,6 +880,8 @@ extern int sacctmgr_remove_assoc_usage(slurmdb_assoc_cond_t *assoc_cond)
cluster, account,
user);
rc = SLURM_ERROR;
slurmdb_destroy_update_object(
update_obj);
goto end_it;
}
list_append(update_obj->objects, rec);
......@@ -898,6 +900,8 @@ extern int sacctmgr_remove_assoc_usage(slurmdb_assoc_cond_t *assoc_cond)
"database",
cluster, account);
rc = SLURM_ERROR;
slurmdb_destroy_update_object(
update_obj);
goto end_it;
}
list_append(update_obj->objects, rec);
......@@ -925,7 +929,6 @@ end_it:
FREE_NULL_LIST(local_assoc_list);
FREE_NULL_LIST(local_cluster_list);
slurmdb_destroy_update_object(update_obj);
return rc;
}
......
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