[vlc-devel] commit: access_pvr: really fix the potential memleak. ( Rémi Duraffort )
git version control
git at videolan.org
Mon Mar 9 09:43:07 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Mar 9 09:38:25 2009 +0100| [d7a871c8cf5f9a3653e292d6878a8c9230cfc272] | committer: Rémi Duraffort
access_pvr: really fix the potential memleak.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d7a871c8cf5f9a3653e292d6878a8c9230cfc272
---
modules/access/pvr.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/access/pvr.c b/modules/access/pvr.c
index 804b0aa..70d0127 100644
--- a/modules/access/pvr.c
+++ b/modules/access/pvr.c
@@ -580,6 +580,8 @@ static int Open( vlc_object_t * p_this )
psz_tofree = strdup( p_access->psz_path );
if( !psz_tofree )
{
+ free( p_sys->psz_radiodev );
+ free( p_sys->psz_videodev );
free( p_sys );
return VLC_ENOMEM;
}
More information about the vlc-devel
mailing list