From bcf142a30f097c7e183ef959dd540b9d225b729d Mon Sep 17 00:00:00 2001 From: nicodvb Date: Wed, 12 Dec 2007 22:54:20 +0000 Subject: fix memleaks; patch by andrew calkin from gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25383 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_dvb.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'stream/stream_dvb.c') 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; -- cgit v1.2.3