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

git version control git at videolan.org
Wed Jul 1 09:39:32 CEST 2009


vlc | branch: 1.0-bugfix | Rémi Duraffort <ivoire at videolan.org> | Tue Jun 30 16:43:11 2009 +0200| [1ff900315b7cb5c404b827557fef78358cdbcba2] | committer: Rémi Duraffort 

fix potential memleak.
(cherry picked from commit e348132d2c5f12583aca7ddd378bb8cd01eac2cc)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

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

 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 6794490..9828584 100644
--- a/modules/video_filter/erase.c
+++ b/modules/video_filter/erase.c
@@ -163,6 +163,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