[MPlayer-cvslog] r25383 - trunk/stream/stream_dvb.c

nicodvb subversion at mplayerhq.hu
Wed Dec 12 23:54:20 CET 2007


Author: nicodvb
Date: Wed Dec 12 23:54:20 2007
New Revision: 25383

Log:
fix memleaks; patch by andrew calkin from gmail com

Modified:
   trunk/stream/stream_dvb.c

Modified: trunk/stream/stream_dvb.c
==============================================================================
--- trunk/stream/stream_dvb.c	(original)
+++ trunk/stream/stream_dvb.c	Wed Dec 12 23:54:20 2007
@@ -796,9 +796,15 @@ dvb_config_t *dvb_get_config(void)
 		}
 		
 		if((access(conf_file, F_OK | R_OK) != 0))
+		{
+			if(conf_file)
+				free(conf_file);
 			conf_file = get_path("channels.conf");
+		}
 
 		list = dvb_get_channels(conf_file, type);
+		if(conf_file)
+			free(conf_file);
 		if(list == NULL)
 			continue;
 		



More information about the MPlayer-cvslog mailing list