You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spotted a delete that I think shouldnt be there.
You pass cfg by value, then delete a pointer to cfg.lightgluepath. This causes a double free error as the pass-by-value cfg object is implicitly deleted after function execution. The faulty line is line 63. Just remove delete modelPath.
PS: maybe the same thing is in LightGlueDecoupleOnnxRunner.cpp as well, idk
const size_t numOutputNodes = session->GetOutputCount();
OutputNodeNames.reserve(numOutputNodes);
for (size_t i = 0 ; i < numOutputNodes ; i++)
{
OutputNodeNames.emplace_back(_strdup(session->GetOutputNameAllocated(i , allocator).get()));
OutputNodeShapes.emplace_back(session->GetOutputTypeInfo(i).GetTensorTypeAndShapeInfo().GetShape());
}
delete modelPath;
std::cout << "[INFO] ONNXRuntime environment created successfully." << std::endl;
The text was updated successfully, but these errors were encountered:
[in LightGlueOnnxRunner.cpp]
First, thanks for the repo!
Spotted a delete that I think shouldnt be there.
You pass cfg by value, then delete a pointer to
cfg.lightgluepath
. This causes a double free error as the pass-by-value cfg object is implicitly deleted after function execution. The faulty line is line 63. Just removedelete modelPath
.PS: maybe the same thing is in LightGlueDecoupleOnnxRunner.cpp as well, idk
The text was updated successfully, but these errors were encountered: