]> git.sesse.net Git - vlc/commitdiff
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 f3052d0366ba6b5f1787886f8b15cca0b1f1f7df..0ebb7d1d89be32f90b4d9ea830d9ebbf84246483 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;
     }