Skip to content

Commit ed9618d

Browse files
author
Dave van der Locht
committed
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
1 parent 29b82e2 commit ed9618d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/rrbb.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ rrbb_t rrbb_new (int chan, int subchan, int slice, int is_scrambled, int descram
101101

102102
new_count++;
103103

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

0 commit comments

Comments
 (0)