Set pointer to NULL just after free() two other places too.

This commit is contained in:
Petter Reinholdtsen 2014-01-11 07:58:50 +00:00
parent 86cb5ee175
commit 696ccb0787

View File

@ -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 {