[Rpm-maint] [rpm-software-management/rpm] Close file on all paths to prevent resource leak (PR #3930)

Piotr Idzik notifications at github.com
Mon Sep 8 18:28:24 UTC 2025


Ensure fclose() is called before returning on all paths after opening a file in test(struct test*). This prevents file descriptor leaks when errors occur during file processing.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/3930

-- Commit Summary --

  * Close file on all paths to prevent resource leak

-- File Changes --

    M tests/rpmpgppubkeyfingerprint.c (3)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/3930.patch
https://github.com/rpm-software-management/rpm/pull/3930.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3930
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3930 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250908/25850280/attachment.htm>


More information about the Rpm-maint mailing list