[Git][pacman/pacman][master] 2 commits: _alpm_handle_free: free all in-memory resources
Allan McRae pushed to branch master at Pacman / Pacman Commits: 929bad61 by Andrew Gregory at 2024-01-09T22:39:14+00:00 _alpm_handle_free: free all in-memory resources Freeing handle resources was previously split awkwardly between _alpm_handle_free and alpm_release. This consolidates the freeing of all in-memory resources to _alpm_handle_free, leaving alpm_release as a thin wrapper that provides safety checks and frees any external resources, e.g. removing lock files. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> - - - - - 42fa74e9 by Andrew Gregory at 2024-01-09T22:39:14+00:00 free handle resources before running scripts The primary purpose of this is to allow cleanup of file descriptors allocated by curl that were left open in the child. I am not aware of any issues caused by the open file descriptors, but think it better to not leave random open fd's lying around. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> - - - - - 3 changed files: - lib/libalpm/alpm.c - lib/libalpm/handle.c - lib/libalpm/util.c View it on GitLab: https://gitlab.archlinux.org/pacman/pacman/-/compare/00d2b1f90261bf77eaaf262... -- View it on GitLab: https://gitlab.archlinux.org/pacman/pacman/-/compare/00d2b1f90261bf77eaaf262... You're receiving this email because of your account on gitlab.archlinux.org.
participants (1)
-
Allan McRae (@allan)