[vlc-devel] commit: Fix CID 132 use pointer after being freed without setting it to NULL. ( Jean-Paul Saman )
git version control
git at videolan.org
Sat May 31 16:08:26 CEST 2008
vlc | branch: 0.8.6-bugfix | Jean-Paul Saman <jpsaman at videolan.org> | Sat May 31 16:09:20 2008 +0200| [60c3f1afcc50689bb5d76eb8f13762827e90e3f0]
Fix CID 132 use pointer after being freed without setting it to NULL.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=60c3f1afcc50689bb5d76eb8f13762827e90e3f0
---
modules/access_filter/record.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/access_filter/record.c b/modules/access_filter/record.c
index d36a68f..460a7cc 100644
--- a/modules/access_filter/record.c
+++ b/modules/access_filter/record.c
@@ -148,6 +148,7 @@ static int Open( vlc_object_t *p_this )
if( *psz == '\0' )
{
free( psz );
+ psz = NULL;
if( p_access->p_vlc->psz_homedir )
psz = strdup( p_access->p_vlc->psz_homedir );
}
More information about the vlc-devel
mailing list