mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-01-21 16:42:19 +08:00
Make sure to set free()ed pointer to NULL immediately, as specified by
<URL: http://sourceforge.net/p/ipmitool/wiki/coding_standards/ >.
This commit is contained in:
parent
99fff91f9d
commit
86cb5ee175
@ -2746,6 +2746,7 @@ ipmi_ek_display_board_info_area(FILE * input_file, char * board_type,
|
||||
if ((ret != 1) || ferror(input_file)) {
|
||||
lprintf(LOG_ERR, "Invalid board type size!");
|
||||
free(data);
|
||||
data = NULL;
|
||||
goto out;
|
||||
}
|
||||
printf("%s type: 0x%02x\n", board_type, len);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user