From 586f3818972c895194167f06c3003b8a9236ca34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <rdenis@simphalempin.com>
Date: Sun, 1 Jun 2008 16:28:42 +0300
Subject: [PATCH] Fix small memory leak

---
 src/modules/modules.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/modules.c b/src/modules/modules.c
index 0e25c855c021..b1e15341cac4 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -920,7 +920,7 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
 #endif
 
     /* If the user provided a plugin path, we add it to the list */
-    char * userpaths = config_GetPsz( p_this, "plugin-path" );
+    char *userpaths = config_GetPsz( p_this, "plugin-path" );
     char *paths_iter;
 
     for( paths_iter = userpaths; paths_iter; )
@@ -946,6 +946,7 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
     }
 
     vlc_array_destroy( arraypaths );
+    free( userpaths );
 }
 
 /*****************************************************************************
-- 
GitLab