xz: Fix a memory leak in DOS-specific code.

This commit is contained in:
Lasse Collin 2015-01-07 19:18:20 +02:00
parent f0f1f6c723
commit 04bbc0c284
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}