<pre style='margin:0'>
Zero King (l2dy) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/89196e89067759d6b93761c4b3f4fe8b40a2cd13">https://github.com/macports/macports-base/commit/89196e89067759d6b93761c4b3f4fe8b40a2cd13</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 89196e89067759d6b93761c4b3f4fe8b40a2cd13
</span>Author: Zero King <l2dy@macports.org>
AuthorDate: Thu Feb 10 11:46:16 2022 +0000
<span style='display:block; white-space:pre;color:#404040;'> pextlib1.0: fix memory leak
</span>---
src/pextlib1.0/Pextlib.c | 8 ++++----
src/pextlib1.0/sip_copy_proc.c | 2 ++
2 files changed, 6 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/pextlib1.0/Pextlib.c b/src/pextlib1.0/Pextlib.c
</span><span style='display:block; white-space:pre;color:#808080;'>index 0a745f85..ed3186be 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/pextlib1.0/Pextlib.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/pextlib1.0/Pextlib.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -913,6 +913,10 @@ int fs_case_sensitive_fallback(Tcl_Interp *interp, const char *path, mount_cs_ca
</span> int ret = -1;
char *mntpoint = NULL;
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (!path) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ret;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if (cache) {
mntpoint = get_mntpoint(path);
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -926,10 +930,6 @@ int fs_case_sensitive_fallback(Tcl_Interp *interp, const char *path, mount_cs_ca
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if (!path) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return ret;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> char *lowercase_path = strdup(path);
char *uppercase_path = strdup(path);
<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 ed8953a9..7ece8da8 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;'>@@ -495,6 +495,7 @@ int sip_copy_execve(const char *path, char *const argv[], char *const envp[]) {
</span>
char *new_path = lazy_copy(to_be_copied, &st);
if (!new_path) {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ free_argv(outargv);
</span> return -1;
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -544,6 +545,7 @@ int sip_copy_posix_spawn(
</span>
char *new_path = lazy_copy(to_be_copied, &st);
if (!new_path) {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ free_argv(outargv);
</span> return -1;
}
</pre><pre style='margin:0'>
</pre>