[vlc-devel] commit: bloc_test: fix meleak so we can use valgrind on it. ( Rémi Duraffort )

git version control git at videolan.org
Sun Aug 30 21:05:09 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Aug 30 21:01:41 2009 +0200| [c793eff2b53754c12438b6b8c0c915193a9cb7b4] | committer: Rémi Duraffort 

bloc_test: fix meleak so we can use valgrind on it.

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

 src/test/block_test.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/test/block_test.c b/src/test/block_test.c
index 05f9b7c..efeb41c 100644
--- a/src/test/block_test.c
+++ b/src/test/block_test.c
@@ -75,6 +75,7 @@ static void test_block (void)
     assert (!memcmp (block->p_buffer + 200, text, sizeof (text)));
 
     block = block_Realloc (block, -200, sizeof (text) + 200);
+    block_Release (block);
 
     //block = block_Alloc (SIZE_MAX);
     //assert (block == NULL);




More information about the vlc-devel mailing list