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

correct xmalloc size in gres module

parent d847de26
No related branches found
No related tags found
No related merge requests found
......@@ -3168,7 +3168,7 @@ extern int gres_plugin_step_state_unpack(List *gres_list, Buf buffer,
safe_unpack8(&has_file, buffer);
if (has_file) {
gres_step_ptr->gres_bit_alloc =
xmalloc(sizeof(bitstr_t) *
xmalloc(sizeof(bitstr_t *) *
gres_step_ptr->node_cnt);
for (i=0; i<gres_step_ptr->node_cnt; i++) {
unpack_bit_str(&gres_step_ptr->gres_bit_alloc[i],
......
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