changeset 25355:3110688d2406

fix memleaks; patch by andrew calkin from gmail com
author nicodvb
date Wed, 12 Dec 2007 22:54:20 +0000
parents a4c4b56e933d
children a5c22f3e4673
files stream/stream_dvb.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvb.c	Wed Dec 12 19:26:55 2007 +0000
+++ b/stream/stream_dvb.c	Wed Dec 12 22:54:20 2007 +0000
@@ -796,9 +796,15 @@
 		}
 		
 		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;