mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
Set pointer to NULL just after free() two other places too.
This commit is contained in:
parent
86cb5ee175
commit
696ccb0787
@ -2763,6 +2763,7 @@ ipmi_ek_display_board_info_area(FILE * input_file, char * board_type,
|
|||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
free(data);
|
free(data);
|
||||||
|
data = NULL;
|
||||||
(*board_length) -= size_board;
|
(*board_length) -= size_board;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
@ -2809,6 +2810,7 @@ ipmi_ek_display_board_info_area(FILE * input_file, char * board_type,
|
|||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
free(additional_data);
|
free(additional_data);
|
||||||
|
additional_data = NULL;
|
||||||
(*board_length) -= size_board;
|
(*board_length) -= size_board;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user