Commit 60c3f1af authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix CID 132 use pointer after being freed without setting it to NULL.

parent d05acf36
...@@ -148,6 +148,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -148,6 +148,7 @@ static int Open( vlc_object_t *p_this )
if( *psz == '\0' ) if( *psz == '\0' )
{ {
free( psz ); free( psz );
psz = NULL;
if( p_access->p_vlc->psz_homedir ) if( p_access->p_vlc->psz_homedir )
psz = strdup( p_access->p_vlc->psz_homedir ); psz = strdup( p_access->p_vlc->psz_homedir );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment