[vlc-devel] commit: config: fix memleak. ( Rémi Duraffort )

git version control git at videolan.org
Thu May 7 14:14:23 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu May  7 14:14:05 2009 +0200| [bf397e887370af737f28c780430bc54098e8df96] | committer: Rémi Duraffort 

config: fix memleak.

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

 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 482f629..11a717d 100644
--- a/src/config/file.c
+++ b/src/config/file.c
@@ -121,6 +121,7 @@ static FILE *config_OpenConfigFile( vlc_object_t *p_obj )
         }
     }
 #endif
+    free( psz_filename );
     return p_stream;
 }
 




More information about the vlc-devel mailing list