Typo (free both tabs once, rather than one twice, and the other one never)
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 16 Dec 2007 21:10:57 +0000 (21:10 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 16 Dec 2007 21:10:57 +0000 (21:10 +0000)
Also some code simplifaction

src/config/core.c

index af42374..b8364e2 100644 (file)
@@ -571,18 +571,15 @@ void config_Free( module_t *p_module )
             free (p_item->saved.psz);
         }
 
-        if( p_item->i_list )
-        {
-            if( p_item->ppsz_list )
-                for( i = 0; i < p_item->i_list; i++ )
-                    free( p_item->ppsz_list[i] );
-            if( p_item->ppsz_list_text )
-                for( i = 0; i < p_item->i_list; i++ )
-                    free( p_item->ppsz_list[i] );
-            free( p_item->ppsz_list );
-            free( p_item->ppsz_list_text );
-            free( p_item->pi_list );
-        }
+        if( p_item->ppsz_list )
+            for( i = 0; i < p_item->i_list; i++ )
+                free( p_item->ppsz_list[i] );
+        if( p_item->ppsz_list_text )
+            for( i = 0; i < p_item->i_list; i++ )
+                free( p_item->ppsz_list_text[i] );
+        free( p_item->ppsz_list );
+        free( p_item->ppsz_list_text );
+        free( p_item->pi_list );
 
         if( p_item->i_action )
         {