]> git.tuebingen.mpg.de Git - paraslash.git/commit
Fix memory leak in para_play().
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 6 Oct 2022 15:12:13 +0000 (17:12 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 12 Feb 2023 22:45:21 +0000 (23:45 +0100)
commit53789fd79c330ca1dc1d84b5bc4ecee73cbe983f
treed62ca44f2e9e73109b34d05be4821a97ccfa7048
parent7c988892fc0bcde45f2afc7480717335bea5bbc4
Fix memory leak in para_play().

We leak one filter parse result per audio file played. Valgrind reports:

==24559== 24 (12 direct, 12 indirect) bytes in 1 blocks are definitely lost in loss record 34 of 104
==24559==    at 0x4044B0B: calloc (vg_replace_malloc.c:1328)
==24559==    by 0x453A997: lls_parse (lopsub.c:768)
==24559==    by 0x8057612: filter_setup (filter_common.c:98)
==24559==    by 0x80500A4: load_file (play.c:377)
==24559==    by 0x80500A4: load_next_file (play.c:454)
==24559==    by 0x80500A4: play_post_monitor (play.c:1154)
==24559==    by 0x8051110: call_post_monitor (sched.c:80)
==24559==    by 0x8051110: sched_post_monitor (sched.c:106)
==24559==    by 0x8051110: schedule (sched.c:148)
==24559==    by 0x804EB80: main (play.c:1217)
play.c