diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2015-01-07 19:18:20 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2015-01-07 19:18:20 +0200 |
commit | 04bbc0c2843c50c8ad1cba42b937118e38b0508d (patch) | |
tree | 937039d7e18a4e186102d2978099a464c06e4380 | |
parent | xz: Don't fail if stdin doesn't support O_NONBLOCK. (diff) | |
download | xz-04bbc0c2843c50c8ad1cba42b937118e38b0508d.tar.xz |
xz: Fix a memory leak in DOS-specific code.
-rw-r--r-- | src/xz/file_io.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } } |