diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2014-01-11 07:58:50 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2014-01-11 07:58:50 +0000 |
commit | 696ccb078744f1266dd75909bd9eeb1c1cadfd7b (patch) | |
tree | 817fc2461bc5c1c526006f10bdddc5fe7bc66636 | |
parent | 86cb5ee1756140f15057f07ba56c05080c7a699d (diff) | |
download | ipmitool-696ccb078744f1266dd75909bd9eeb1c1cadfd7b.tar.gz |
Set pointer to NULL just after free() two other places too.
-rw-r--r-- | ipmitool/lib/ipmi_ekanalyzer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipmitool/lib/ipmi_ekanalyzer.c b/ipmitool/lib/ipmi_ekanalyzer.c index e0e3883..2ac1012 100644 --- a/ipmitool/lib/ipmi_ekanalyzer.c +++ b/ipmitool/lib/ipmi_ekanalyzer.c @@ -2763,6 +2763,7 @@ ipmi_ek_display_board_info_area(FILE * input_file, char * board_type, } printf("\n"); free(data); + data = NULL; (*board_length) -= size_board; goto out; } @@ -2809,6 +2810,7 @@ ipmi_ek_display_board_info_area(FILE * input_file, char * board_type, } printf("\n"); free(additional_data); + additional_data = NULL; (*board_length) -= size_board; } else { |