[vlc-devel] commit: More memleaks (pointed out by Jpeg) ( Rémi Duraffort )
git version control
git at videolan.org
Thu Jul 31 20:36:42 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 31 20:39:42 2008 +0200| [313c62d2df64a4a6b24023c15e8140b7ce54d3eb]
More memleaks (pointed out by Jpeg)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=313c62d2df64a4a6b24023c15e8140b7ce54d3eb
---
modules/access/cdda/access.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/access/cdda/access.c b/modules/access/cdda/access.c
index f4de5bd..d5e3d81 100644
--- a/modules/access/cdda/access.c
+++ b/modules/access/cdda/access.c
@@ -597,6 +597,7 @@ int CDDAOpen( vlc_object_t *p_this )
if( !psz_source || !*psz_source )
{
+ free( psz_source );
/* No device/track given. Continue only when this plugin was
selected */
if( !p_this->b_force )
@@ -804,6 +805,7 @@ int CDDAOpen( vlc_object_t *p_this )
var_Create( p_access, MODULE_STRING "-caching",
VLC_VAR_INTEGER|VLC_VAR_DOINHERIT );
vlc_object_release( p_cdda->p_input );
+ free( psz_source );
return VLC_SUCCESS;
error:
More information about the vlc-devel
mailing list