[vlc-commits] test: packetizer: fix leaks

Francois Cartegnie git at videolan.org
Sun Oct 13 13:02:38 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Oct 13 13:01:41 2019 +0200| [3c2eebb776cb3892ae91ebe150460b82dd168d39] | committer: Francois Cartegnie

test: packetizer: fix leaks

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c2eebb776cb3892ae91ebe150460b82dd168d39
---

 test/modules/packetizer/packetizer.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/test/modules/packetizer/packetizer.h b/test/modules/packetizer/packetizer.h
index 2220898d44..b0a71a0789 100644
--- a/test/modules/packetizer/packetizer.h
+++ b/test/modules/packetizer/packetizer.h
@@ -135,10 +135,8 @@ static int test_packetize(const char *run,
     if(params->i_frame_count)
     {
         EXPECT(outchain != NULL);
-
-        p_block = block_ChainGather(outchain);
-        EXPECT(p_block != NULL);
     }
+    block_ChainRelease(outchain);
 
     EXPECT(!!params->b_extra == !!p->fmt_out.i_extra);
 



More information about the vlc-commits mailing list