Skip to content

Commit

Permalink
Fix tests run with make check when using alternative allocators.
Browse files Browse the repository at this point in the history
The call to free in line 584 of sharedbook.c mismatches
the _ogg_calloc call used to allocated that data in line 216.

This causes make check to fail when alternative allocators
are used, e.g. the xmm_malloc family of allocators used with
the Lancer optimizations.

Signed-off-by: Ralph Giles <giles@thaumas.net>
  • Loading branch information
enzo1982 authored and rillian committed Feb 20, 2021
1 parent 83a82dd commit 4e1155c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sharedbook.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ void run_test(static_codebook *b,float *comp){
exit(1);
}
}
free(out);
_ogg_free(out);
}

int main(){
Expand Down

0 comments on commit 4e1155c

Please sign in to comment.