xiph / vorbis

Reference implementation of the Ogg Vorbis audio format.
BSD 3-Clause "New" or "Revised" License
467 stars 188 forks source link

Fix tests run with make check when using alternative allocators. #81

Closed enzo1982 closed 3 years ago

enzo1982 commented 3 years ago

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.

rillian commented 3 years ago

Merged in 4e1155cc77a2c672f3dd18f9a32dbf1404693289 via https://gitlab.xiph.org/xiph/vorbis/-/merge_requests/18.

Thanks for the fix!