Skip to content

Commit bdd75b3

Browse files
committed
Pass by reference in freeVector
1 parent 6b1068b commit bdd75b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

highs/ipm/hipo/auxiliary/Auxiliary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void printTest(const std::vector<T>& v, const std::string s) {
7272
}
7373

7474
template <typename T>
75-
void freeVector(std::vector<T> v) {
75+
void freeVector(std::vector<T>& v) {
7676
// Give up memory allocated to v.
7777
// (technically shrink_to_fit does not guarantee to deallocate)
7878
v.clear();

0 commit comments

Comments
 (0)