-
Notifications
You must be signed in to change notification settings - Fork 152
Open
Description
Hi. There is a memory leak report from valgrind memcheck.
In file di.hpp (line 1605)
explicit scope(TInjector&& i) noexcept : injector_((injector*)new injector_impl{static_cast<TInjector&&>(i)}) {}
result of new (some complex class) was cast to injector*
And then in destructor injector is freeded.
But the type of injector is different to than complex object was created in new.
Can we use virtual destructor for base class of injector ?
Metadata
Metadata
Assignees
Labels
No labels