================ @@ -3028,24 +2986,10 @@ void MallocChecker::HandleLeak(SymbolRef Sym, ExplodedNode *N, if (Family.Kind == AF_Alloca) return; - std::optional<MallocChecker::CheckKind> CheckKind = - getCheckIfTracked(Family, true); - - if (!CheckKind) + const Leak *Frontend = getRelevantFrontendAs<Leak>(Family); + if (handleNullOrDisabled(Frontend, C)) ---------------- NagyDonat wrote:
```suggestion if (!Frontend || !Frontend.isEnabled()) ``` https://github.com/llvm/llvm-project/pull/147080 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits