Skip to content
Snippets Groups Projects
Commit e6555fca authored by Gregor Weiss's avatar Gregor Weiss Committed by Sergey Lesnik
Browse files

BUG: memory leak fix

parent d3304065
Branches
No related merge requests found
......@@ -198,8 +198,8 @@ Foam::Ostream& Foam::operator<<(Foam::Ostream& os, const Foam::UList<T>& L)
Pout<< "L = " << L << endl;
}
os.parwrite(new UListProxy<T>(L));
std::unique_ptr<UListProxy<T>> proxy(new UListProxy<T>(L));
os.parwrite(proxy.get());
}
// Check state of IOstream
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment