diff options
Diffstat (limited to 'lib/ipmi_ekanalyzer.c')
-rw-r--r-- | lib/ipmi_ekanalyzer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ipmi_ekanalyzer.c b/lib/ipmi_ekanalyzer.c index 96d3b44..afee48b 100644 --- a/lib/ipmi_ekanalyzer.c +++ b/lib/ipmi_ekanalyzer.c @@ -399,7 +399,6 @@ ipmi_ekanalyzer_usage(void) static int ipmi_ek_get_file_type(char *argument) { - int index_name=0; int filetype = ERROR_STATUS; if (strlen(argument) <= MIN_ARGUMENT) { return filetype; @@ -2773,6 +2772,10 @@ ipmi_ek_display_board_info_area(FILE *input_file, char *board_type, ret = fread(additional_data, size_board, 1, input_file); if ((ret != 1) || ferror(input_file)) { lprintf(LOG_ERR, "Invalid Additional Data!"); + if (additional_data != NULL) { + free(additional_data); + additional_data = NULL; + } goto out; } printf("Additional Custom Mfg. Data: %02x", |