mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Properly cleanup the UID/GID lookup data.
This commit is contained in:
parent
1eb296a82c
commit
2a5449a7ca
1 changed files with 4 additions and 0 deletions
|
|
@ -922,6 +922,10 @@ _archive_write_finish(struct archive *_a)
|
|||
struct archive_write_disk *a = (struct archive_write_disk *)_a;
|
||||
int ret;
|
||||
ret = _archive_write_close(&a->archive);
|
||||
if (a->cleanup_gid != NULL && a->lookup_gid_data != NULL)
|
||||
(a->cleanup_gid)(a->lookup_gid_data);
|
||||
if (a->cleanup_uid != NULL && a->lookup_uid_data != NULL)
|
||||
(a->cleanup_uid)(a->lookup_uid_data);
|
||||
archive_string_free(&a->_name_data);
|
||||
archive_string_free(&a->archive.error_string);
|
||||
archive_string_free(&a->path_safe);
|
||||
|
|
|
|||
Loading…
Reference in a new issue