From fa8d9984877487b3e862663fce05f80d73af9963 Mon Sep 17 00:00:00 2001 From: David Major Date: Sun, 1 Apr 2018 09:37:42 -0400 Subject: [PATCH] Bug 1447795: Add even more UseItOrLoseIt to SmokeDMD.cpp --- memory/replace/dmd/test/SmokeDMD.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/memory/replace/dmd/test/SmokeDMD.cpp b/memory/replace/dmd/test/SmokeDMD.cpp index 3845959634e8d..b1a044c313a4c 100644 --- a/memory/replace/dmd/test/SmokeDMD.cpp +++ b/memory/replace/dmd/test/SmokeDMD.cpp @@ -67,6 +67,7 @@ void Foo(int aSeven) char* a[6]; for (int i = 0; i < aSeven - 1; i++) { a[i] = (char*) malloc(128 - 16*i); + UseItOrLoseIt(a[i], aSeven); } // Oddly, some versions of clang will cause identical stack traces to be @@ -79,6 +80,7 @@ void Foo(int aSeven) for (int i = 0; i < aSeven - 5; i++) { Report(a[i]); // reported + UseItOrLoseIt(a[i], aSeven); } UseItOrLoseIt(a[2], aSeven);