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

git version control git at videolan.org
Tue Jun 30 16:43:30 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Jun 30 16:43:11 2009 +0200| [e348132d2c5f12583aca7ddd378bb8cd01eac2cc] | committer: Rémi Duraffort 

fix potential memleak.

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

 modules/video_filter/erase.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/video_filter/erase.c b/modules/video_filter/erase.c
index 2cbe6c6..c883b25 100644
--- a/modules/video_filter/erase.c
+++ b/modules/video_filter/erase.c
@@ -161,6 +161,7 @@ static int Create( vlc_object_t *p_this )
     if( !psz_filename )
     {
         msg_Err( p_filter, "Missing 'mask' option value." );
+        free( p_sys );
         return VLC_EGENERIC;
     }
 




More information about the vlc-devel mailing list