[vlc-commits] commit: Fix memory leak in previous commit ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Wed Nov 17 18:37:51 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Nov 17 19:37:43 2010 +0200| [3df6407dd21449d65a4c6741427714d51ab1223c] | committer: Rémi Denis-Courmont 

Fix memory leak in previous commit

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3df6407dd21449d65a4c6741427714d51ab1223c
---

 src/config/file.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/config/file.c b/src/config/file.c
index 53dbfd7..a832000 100644
--- a/src/config/file.c
+++ b/src/config/file.c
@@ -442,6 +442,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
         }
         fclose (file);
         file = NULL;
+        free (line);
         *p_index = '\0';
         bigsize = p_index - bigbuf;
     }



More information about the vlc-commits mailing list