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:
parent
f0f1f6c723
commit
04bbc0c284
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue