[vlc-commits] g711: fix dangling pointer (fixes #16909)

Rémi Denis-Courmont git at videolan.org
Wed May 4 19:03:53 CEST 2016


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May  4 20:01:49 2016 +0300| [924a4a596ceba6a99f252f1efe7c048e830e6e8c] | committer: Rémi Denis-Courmont

g711: fix dangling pointer (fixes #16909)

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

 modules/codec/g711.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/g711.c b/modules/codec/g711.c
index 5d89471..ce5fb53 100644
--- a/modules/codec/g711.c
+++ b/modules/codec/g711.c
@@ -219,6 +219,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
     if( pp_block == NULL )
         return NULL;
     block_t *p_block = *pp_block;
+    *pp_block = NULL;
     if( p_block == NULL )
         return NULL;
 



More information about the vlc-commits mailing list