diff options
author | al <al@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-07-23 16:10:21 +0000 |
---|---|---|
committer | al <al@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-07-23 16:10:21 +0000 |
commit | 8bad258e0d4b1858c6cf95785f9aae0a2fd7760e (patch) | |
tree | ebde52204e0b8e3686d3e158f171862c14938d26 /input | |
parent | ea3e5fdf2e2a2991f790e67ab3a67eea9cf45615 (diff) | |
download | mpv-8bad258e0d4b1858c6cf95785f9aae0a2fd7760e.tar.bz2 mpv-8bad258e0d4b1858c6cf95785f9aae0a2fd7760e.tar.xz |
false-use-of-get_path() memleak fixes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12891 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input')
-rw-r--r-- | input/input.c | 5 |
1 files changed, 4 insertions, 1 deletions
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)) |