[vlc-devel] commit: pudec: fix potential memleaks. ( Rémi Duraffort )

git version control git at videolan.org
Mon Dec 15 23:17:14 CET 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Dec 15 22:59:30 2008 +0100| [9b25814148486410ed9713c854d00868a8634429] | committer: Rémi Duraffort 

pudec: fix potential memleaks.

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

 modules/codec/spudec/parse.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/codec/spudec/parse.c b/modules/codec/spudec/parse.c
index 88968f1..f4a7252 100644
--- a/modules/codec/spudec/parse.c
+++ b/modules/codec/spudec/parse.c
@@ -119,6 +119,7 @@ subpicture_t * ParsePacket( decoder_t *p_dec )
     {
         /* There was a parse error, delete the subpicture */
         decoder_DeleteSubpicture( p_dec, p_spu );
+        free( p_spu_data );
         return NULL;
     }
 
@@ -127,6 +128,7 @@ subpicture_t * ParsePacket( decoder_t *p_dec )
     {
         /* There was a parse error, delete the subpicture */
         decoder_DeleteSubpicture( p_dec, p_spu );
+        free( p_spu_data );
         return NULL;
     }
 




More information about the vlc-devel mailing list