From 8bad258e0d4b1858c6cf95785f9aae0a2fd7760e Mon Sep 17 00:00:00 2001 From: al Date: Fri, 23 Jul 2004 16:10:21 +0000 Subject: false-use-of-get_path() memleak fixes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12891 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'input/input.c') diff --git a/input/input.c b/input/input.c index 5287dee7b1..271b8d102f 100644 --- a/input/input.c +++ b/input/input.c @@ -1484,7 +1484,10 @@ mp_input_init(void) { if(!file) return; - if(! mp_input_parse_config(file)) { + if( mp_input_parse_config(file)) { + free(file); // release the buffer created by get_path() + } + else { // Try global conf dir file = MPLAYER_CONFDIR "/input.conf"; if(! mp_input_parse_config(file)) -- cgit v1.2.3