Remove CloseHandle() from __archive_write_program_free
The call to CloseHandle() is asymmetric and wrong. The handle is created during the __achive_create_child() call in __archive_write_program_open() aka the filter open callback. While CloseHandle() is already called in the filter close callback aka __archive_write_program_close(). Remove the incorrect call to CloseHandle() from the bidder free callback Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
1 parent
34bee81755
commit
2c3ae11cee
1 file changed
-4
@@ -196,10 +196,6 @@ __archive_write_program_free(struct archive_write_program_data *data)
|
||||
{
|
||||
|
||||
if (data) {
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
if (data->child)
|
||||
CloseHandle(data->child);
|
||||
#endif
|
||||
free(data->program_name);
|
||||
free(data->child_buf);
|
||||
free(data);
|
||||
|
||||
Reference in new issue
Block a user