<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch release-2.7
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/48cae60e09aa2ce68fdfd381416d48a307d7d026">https://github.com/macports/macports-base/commit/48cae60e09aa2ce68fdfd381416d48a307d7d026</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 48cae60e09aa2ce68fdfd381416d48a307d7d026
</span>Author: Zero King <l2dy@macports.org>
AuthorDate: Fri Feb 11 14:17:48 2022 +0000
<span style='display:block; white-space:pre;color:#404040;'> pextlib1.0: fix resource leak when file is not script
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> (cherry picked from commit f1391cfaea525f57e82b5cbe3dce6b0a782325bb)
</span>---
src/pextlib1.0/sip_copy_proc.c | 2 ++
1 file changed, 2 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/pextlib1.0/sip_copy_proc.c b/src/pextlib1.0/sip_copy_proc.c
</span><span style='display:block; white-space:pre;color:#808080;'>index b2becc50..b1ba249c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/pextlib1.0/sip_copy_proc.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/pextlib1.0/sip_copy_proc.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -216,6 +216,8 @@ static copy_needed_return_t copy_needed(const char *path, char *const argv[],
</span> } else {
fclose(f);
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fclose(f);
</span> }
// check whether the binary has SF_RESTRICTED and isn't SUID/SGID
</pre><pre style='margin:0'>
</pre>