Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Extended rrbb_new() memory leak detection boundary
A value of delete_count + 100 seems to give issues with multiple channels and freq. offset decoding configured.
Extended to 168 for testing a max. with 3 channels and 7 offset decoders p/channel
  • Loading branch information
Dave van der Locht committed May 27, 2022
commit ed9618d75e54dc28245bdddf9ba06dc28ba2af96
6 changes: 5 additions & 1 deletion src/rrbb.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ rrbb_t rrbb_new (int chan, int subchan, int slice, int is_scrambled, int descram

new_count++;

if (new_count > delete_count + 100) {
/*
A value of delete_count + 100 seems to give issues with multiple channels and freq. offset decoding configured
extended to 168 for testing a max. with 3 channels and 7 offset decoders p/channel
*/
if (new_count > delete_count + 168) {
text_color_set(DW_COLOR_ERROR);
dw_printf ("MEMORY LEAK, rrbb_new, new_count=%d, delete_count=%d\n", new_count, delete_count);
}
Expand Down