summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvb.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-12 22:54:20 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-12 22:54:20 +0000
commitbcf142a30f097c7e183ef959dd540b9d225b729d (patch)
treea217fbae3a69cc56e177911d94c0ab705894df98 /stream/stream_dvb.c
parentb79af69ae46a1817f038a425e40dff22dced19b6 (diff)
downloadmpv-bcf142a30f097c7e183ef959dd540b9d225b729d.tar.bz2
mpv-bcf142a30f097c7e183ef959dd540b9d225b729d.tar.xz
fix memleaks; patch by andrew calkin from gmail com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25383 b3059339-0415-0410-9bf9-f77b7e298cf2
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;