diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index d396d20c7a2..d02bb607b33 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -1030,7 +1030,7 @@ void CheckMemoryLeakNoVarImpl::checkForUnreleasedInputArgument(const Scope *scop continue; if ((hasAssign || hasReturn) && !tok->function()) { - const std::string& ret = mSettings->library.returnValueType(tok); + const std::string& ret = mSettings.library.returnValueType(tok); if (ret.empty() || endsWith(ret, "*")) continue; }