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

Add a few missing xfree() calls so we don't leak memory when a bad

records is read off the net.
parent c31c61ac
No related branches found
No related tags found
No related merge requests found
...@@ -1909,6 +1909,7 @@ _unpack_slurm_ctl_conf_msg(slurm_ctl_conf_info_msg_t ** ...@@ -1909,6 +1909,7 @@ _unpack_slurm_ctl_conf_msg(slurm_ctl_conf_info_msg_t **
xfree(build_ptr->authtype); xfree(build_ptr->authtype);
xfree(build_ptr->backup_addr); xfree(build_ptr->backup_addr);
xfree(build_ptr->backup_controller); xfree(build_ptr->backup_controller);
xfree(build_ptr->checkpoint_type);
xfree(build_ptr->control_addr); xfree(build_ptr->control_addr);
xfree(build_ptr->control_machine); xfree(build_ptr->control_machine);
xfree(build_ptr->epilog); xfree(build_ptr->epilog);
...@@ -1917,18 +1918,24 @@ _unpack_slurm_ctl_conf_msg(slurm_ctl_conf_info_msg_t ** ...@@ -1917,18 +1918,24 @@ _unpack_slurm_ctl_conf_msg(slurm_ctl_conf_info_msg_t **
xfree(build_ptr->job_acct_type); xfree(build_ptr->job_acct_type);
xfree(build_ptr->job_comp_loc); xfree(build_ptr->job_comp_loc);
xfree(build_ptr->job_comp_type); xfree(build_ptr->job_comp_type);
xfree(build_ptr->job_credential_private_key);
xfree(build_ptr->job_credential_public_certificate);
xfree(build_ptr->plugindir); xfree(build_ptr->plugindir);
xfree(build_ptr->proctrack_type);
xfree(build_ptr->prolog); xfree(build_ptr->prolog);
xfree(build_ptr->schedauth);
xfree(build_ptr->schedtype);
xfree(build_ptr->select_type);
xfree(build_ptr->slurm_conf);
xfree(build_ptr->slurm_user_name);
xfree(build_ptr->slurmctld_logfile); xfree(build_ptr->slurmctld_logfile);
xfree(build_ptr->slurmctld_pidfile); xfree(build_ptr->slurmctld_pidfile);
xfree(build_ptr->slurmd_logfile); xfree(build_ptr->slurmd_logfile);
xfree(build_ptr->slurmd_pidfile); xfree(build_ptr->slurmd_pidfile);
xfree(build_ptr->slurmd_spooldir); xfree(build_ptr->slurmd_spooldir);
xfree(build_ptr->slurm_conf);
xfree(build_ptr->state_save_location); xfree(build_ptr->state_save_location);
xfree(build_ptr->switch_type);
xfree(build_ptr->tmp_fs); xfree(build_ptr->tmp_fs);
xfree(build_ptr->job_credential_private_key);
xfree(build_ptr->job_credential_public_certificate);
xfree(build_ptr); xfree(build_ptr);
*build_buffer_ptr = NULL; *build_buffer_ptr = NULL;
return SLURM_ERROR; return SLURM_ERROR;
......
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