mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix minor memory leak.
This commit is contained in:
parent
8897e2bb46
commit
c9b76880b6
@ -97,7 +97,8 @@ namespace Opm
|
||||
{
|
||||
// Construct scalar product.
|
||||
typedef Dune::ScalarProductChooser<Vector, POrComm, category> ScalarProductChooser;
|
||||
auto sp = ScalarProductChooser::construct(parallelInformation);
|
||||
typedef std::unique_ptr<typename ScalarProductChooser::ScalarProduct> SPPointer;
|
||||
SPPointer sp(ScalarProductChooser::construct(parallelInformation));
|
||||
|
||||
// Construct preconditioner.
|
||||
auto precond = constructPrecond(opA, parallelInformation);
|
||||
|
Loading…
Reference in New Issue
Block a user