summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvb.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_dvb.c')
-rw-r--r--stream/stream_dvb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c
index 8f1c2806c4..f3d023d476 100644
--- a/stream/stream_dvb.c
+++ b/stream/stream_dvb.c
@@ -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;