[vlc-devel] commit: Fix memleaks. ( Rémi Duraffort )
git version control
git at videolan.org
Thu Jul 31 13:29:45 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 31 13:29:06 2008 +0200| [6dd5c5cb5418b321d0f04b4d9265bb4537ba2812]
Fix memleaks.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6dd5c5cb5418b321d0f04b4d9265bb4537ba2812
---
modules/misc/logger.c | 1 +
modules/misc/playlist/xspf.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/misc/logger.c b/modules/misc/logger.c
index 7e92e97..4229fa2 100644
--- a/modules/misc/logger.c
+++ b/modules/misc/logger.c
@@ -268,6 +268,7 @@ static int Open( vlc_object_t *p_this )
{
p_intf->p_sys->p_rrd = utf8_fopen( psz_rrd_file, "w" );
}
+ free( psz_rrd_file );
p_intf->p_sys->p_sub = msg_Subscribe( p_intf );
p_intf->pf_run = Run;
diff --git a/modules/misc/playlist/xspf.c b/modules/misc/playlist/xspf.c
index 1552abb..e1178b2 100644
--- a/modules/misc/playlist/xspf.c
+++ b/modules/misc/playlist/xspf.c
@@ -77,8 +77,8 @@ int xspf_export_playlist( vlc_object_t *p_this )
if( psz_temp && *psz_temp )
{
fprintf( p_export->p_file, "\t<location>%s</location>\n", psz_temp );
- free( psz_temp );
}
+ free( psz_temp );
/* export all items in a flat format */
fprintf( p_export->p_file, "\t<trackList>\n" );
More information about the vlc-devel
mailing list