commit | 92c3f1e31fb58efc8e0087174cee187d20538f72 | [log] [tgz] |
---|---|---|
author | Brian Silverman <brian@peloton-tech.com> | Tue Dec 08 20:21:31 2015 -0500 |
committer | Brian Silverman <brian@peloton-tech.com> | Tue Dec 08 20:21:31 2015 -0500 |
tree | 796a9f1a8e31840086626c7f42420cdc0ee8f2a9 | |
parent | 250eb4c31a282717bafe63f37d64b88f48d21108 [diff] [blame] |
Various cleanups of issues caught by clang-tidy Change-Id: I6e79c121e7c9032cf5053dd31971e719fe76f4b6
diff --git a/build_tests/tcmalloc.cc b/build_tests/tcmalloc.cc index eb74a65..c1d4429 100644 --- a/build_tests/tcmalloc.cc +++ b/build_tests/tcmalloc.cc
@@ -1,3 +1,6 @@ #include <stdlib.h> -int main() { void *big_chunk __attribute__((unused)) = malloc(500000); } +int main() { + void *big_chunk = malloc(500000); + free(big_chunk); +}