Fixed memory leak when we cannot save the configuration file.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 24 Mar 2007 00:46:42 +0000 (00:46 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 24 Mar 2007 00:46:42 +0000 (00:46 +0000)
src/misc/configuration.c

index f3052d0..0ebb7d1 100644 (file)
@@ -1111,6 +1111,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
     if( !file )
     {
         vlc_list_release( p_list );
+        free( p_bigbuffer );
         vlc_mutex_unlock( &p_this->p_libvlc->config_lock );
         return -1;
     }