Memory leaks
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 17 Dec 2007 19:43:18 +0000 (19:43 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 17 Dec 2007 19:43:18 +0000 (19:43 +0000)
src/config/core.c
src/modules/entry.c

index 082023a..4031fb5 100644 (file)
@@ -544,6 +544,7 @@ void config_Free( module_t *p_module )
         free( p_item->psz_name );
         free( p_item->psz_text );
         free( p_item->psz_longtext );
+        free( p_item->psz_oldname );
 
         if (IsConfigStringType (p_item->i_type))
         {
index b59d8f7..4064862 100644 (file)
@@ -349,7 +349,10 @@ int vlc_config_set (module_config_t *restrict item, int id, ...)
                 item->ppsz_list_text = dtext;
             }
             else
+            {
+                free (dtext);
                 item->ppsz_list_text = NULL;
+            }
 
             item->i_list = len;
             ret = 0;