From 04bbc0c2843c50c8ad1cba42b937118e38b0508d Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Wed, 7 Jan 2015 19:18:20 +0200 Subject: xz: Fix a memory leak in DOS-specific code. --- src/xz/file_io.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/xz') diff --git a/src/xz/file_io.c b/src/xz/file_io.c index bf4462d9..08288ebb 100644 --- a/src/xz/file_io.c +++ b/src/xz/file_io.c @@ -738,6 +738,7 @@ io_open_dest_real(file_pair *pair) message_error("%s: Refusing to write to " "a DOS special file", pair->dest_name); + free(pair->dest_name); return true; } @@ -747,6 +748,7 @@ io_open_dest_real(file_pair *pair) message_error("%s: Output file is the same " "as the input file", pair->dest_name); + free(pair->dest_name); return true; } } -- cgit v1.2.3