Skip to content

Commit 884a336

Browse files
authored
Merge pull request #2711 from stratakis/fix_use-after-close
Fix use-after-close in writeSolution when ranging fails
2 parents f8482af + c29f3ed commit 884a336

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

CITATION.cff

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@ authors:
66
77
- given-names: Ivet
88
family-names: Galabova
9-
- given-names: Leona
10-
family-names: Gottwald
11-
- given-names: Michael
12-
family-names: Feldmeier
139
title: "HiGHS"
14-
version: 1.2.2
10+
version: 1.12.0
1511
date-released: 2022-04-18
16-
url: "https://github.com/ERGO-Code/HiGHS/releases/tag/v1.2.2"
12+
url: "https://github.com/ERGO-Code/HiGHS/releases/tag/v1.12.0"
1713
preferred-citation:
1814
type: article
1915
authors:

highs/lp_data/Highs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3511,7 +3511,7 @@ HighsStatus Highs::writeSolution(const std::string& filename,
35113511
interpretCallStatus(options_.log_options, this->getRangingInterface(),
35123512
return_status, "getRangingInterface");
35133513
if (return_status == HighsStatus::kError)
3514-
returnFromWriteSolution(file, return_status);
3514+
return returnFromWriteSolution(file, return_status);
35153515
fprintf(file, "\n# Ranging\n");
35163516
writeRangingFile(file, model_.lp_, info_.objective_function_value, basis_,
35173517
solution_, ranging_, style);

0 commit comments

Comments
 (0)