1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

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

View file

@ -738,6 +738,7 @@ io_open_dest_real(file_pair *pair)
message_error("%s: Refusing to write to " message_error("%s: Refusing to write to "
"a DOS special file", "a DOS special file",
pair->dest_name); pair->dest_name);
free(pair->dest_name);
return true; return true;
} }
@ -747,6 +748,7 @@ io_open_dest_real(file_pair *pair)
message_error("%s: Output file is the same " message_error("%s: Output file is the same "
"as the input file", "as the input file",
pair->dest_name); pair->dest_name);
free(pair->dest_name);
return true; return true;
} }
} }