xz: Fix a memory leak in DOS-specific code.
This commit is contained in:
parent
f0f1f6c723
commit
04bbc0c284
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue