[vlc-devel] commit: Fixed a memleak in cdda. (Laurent Aimar )
git version control
git at videolan.org
Thu Feb 19 00:02:17 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Feb 19 00:01:27 2009 +0100| [b706620b1012130eeeb4075fe93e250f87c4ddd2] | committer: Laurent Aimar
Fixed a memleak in cdda.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b706620b1012130eeeb4075fe93e250f87c4ddd2
---
modules/access/cdda.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/access/cdda.c b/modules/access/cdda.c
index 8664102..b416dd9 100644
--- a/modules/access/cdda.c
+++ b/modules/access/cdda.c
@@ -245,6 +245,7 @@ static int Open( vlc_object_t *p_this )
return VLC_SUCCESS;
error:
+ free( p_sys->p_sectors );
ioctl_Close( VLC_OBJECT(p_access), p_sys->vcddev );
free( p_sys );
return VLC_EGENERIC;
@@ -257,6 +258,8 @@ static void Close( vlc_object_t *p_this )
{
access_t *p_access = (access_t *)p_this;
access_sys_t *p_sys = p_access->p_sys;
+
+ free( p_sys->p_sectors );
ioctl_Close( p_this, p_sys->vcddev );
free( p_sys );
}
More information about the vlc-devel
mailing list