summaryrefslogtreecommitdiff
path: root/test/scudo/alignment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/scudo/alignment.cpp')
-rw-r--r--test/scudo/alignment.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/scudo/alignment.cpp b/test/scudo/alignment.cpp
index a6eca87a8224..125ad8cbe76f 100644
--- a/test/scudo/alignment.cpp
+++ b/test/scudo/alignment.cpp
@@ -14,8 +14,7 @@ int main(int argc, char **argv)
assert(argc == 2);
if (!strcmp(argv[1], "pointers")) {
void *p = malloc(1U << 16);
- if (!p)
- return 1;
+ assert(p);
free(reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(p) | 1));
}
return 0;