Skip to content

Commit

Permalink
Sadly, travis won't allow leak analyzer.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Sep 20, 2018
1 parent 3697eff commit 1ad101c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ branches:
only:
- master

script: make && ./unit && ./unit_chars && make clean && make DEBUG=1 && ./unit && ./unit_chars
script: make && ./unit && ./unit_chars && make clean
6 changes: 4 additions & 2 deletions tests/unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

int issue21() {
size_t sz = 110;
size_t i;
uint32_t *in = malloc(sz * sizeof(uint32_t));
uint32_t *out = malloc(sz * sizeof(uint32_t));
for (size_t i = 0; i < sz; ++i)
for (i = 0; i < sz; ++i)
in[i] = 255;
uint32_t b = maxbits_length(in, sz);
uint8_t *buf = malloc(simdpack_compressedbytes(sz, b));
Expand All @@ -33,11 +34,12 @@ int issue21() {
}

int issue21FOR() {
size_t i;
size_t sz = 110;
uint32_t *in = malloc(sz * sizeof(uint32_t));
uint32_t *out = malloc(sz * sizeof(uint32_t));
in[0] = 0;
for (size_t i = 1; i < sz; ++i)
for (i = 1; i < sz; ++i)
in[i] = 255;
uint32_t b = maxbits_length(in, sz);
uint8_t *buf = malloc(simdpackFOR_compressedbytes(sz, b));
Expand Down

0 comments on commit 1ad101c

Please sign in to comment.