[Mplayer-cvslog] CVS: main/input input.c,1.90,1.91

Alexander Strasser beastd syncmail at mplayerhq.hu
Fri Jul 23 18:10:23 CEST 2004


CVS change done by Alexander Strasser (beastd)

Update of /cvsroot/mplayer/main/input
In directory mail:/var2/tmp/cvs-serv15022/input

Modified Files:
	input.c 
Log Message:
false-use-of-get_path() memleak fixes.


Index: input.c
===================================================================
RCS file: /cvsroot/mplayer/main/input/input.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -r1.90 -r1.91
--- input.c	17 Jul 2004 12:47:12 -0000	1.90
+++ input.c	23 Jul 2004 16:10:21 -0000	1.91
@@ -1484,7 +1484,10 @@
   if(!file)
     return;
   
-  if(! mp_input_parse_config(file)) {
+  if( mp_input_parse_config(file)) {
+    free(file); // release the buffer created by get_path()
+  }
+  else {
     // Try global conf dir
     file = MPLAYER_CONFDIR "/input.conf";
     if(! mp_input_parse_config(file))




More information about the MPlayer-cvslog mailing list