diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-12 22:54:20 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-12 22:54:20 +0000 |
commit | bcf142a30f097c7e183ef959dd540b9d225b729d (patch) | |
tree | a217fbae3a69cc56e177911d94c0ab705894df98 /stream | |
parent | b79af69ae46a1817f038a425e40dff22dced19b6 (diff) | |
download | mpv-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')
-rw-r--r-- | stream/stream_dvb.c | 6 |
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; |