mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1447795: Add even more UseItOrLoseIt to SmokeDMD.cpp
This commit is contained in:
parent
afdd07f3e2
commit
fa8d998487
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user