mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
557f9a3436
Check for memory leaks. Traces memory managed by new/ delete. There are currently no clang-analyzer-cplusplus.NewDeleteLeaks warnings in mozilla-central! https://clang-analyzer.llvm.org/available_checks.html MozReview-Commit-ID: 3tmwR26UB8K --HG-- extra : rebase_source : 3796cc6b61c03e83ce8b390e3342b870085b2ed2 extra : source : 3389fb54d2e3daee38db38503b37e9d994878bcd
7 lines
105 B
C++
7 lines
105 B
C++
// https://clang-analyzer.llvm.org/available_checks.html
|
|
|
|
void test()
|
|
{
|
|
int *p = new int;
|
|
} // warning
|