[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, gawk-5.2-stable, updated. gawk-4.1.0-4920-gbc8957f4
From: |
Arnold Robbins |
Subject: |
[SCM] gawk branch, gawk-5.2-stable, updated. gawk-4.1.0-4920-gbc8957f4 |
Date: |
Fri, 30 Sep 2022 06:00:09 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, gawk-5.2-stable has been updated
via bc8957f4f5e1aafd00c82b52f4c82997b7cfc183 (commit)
from 53d97efad03453b0fff5a941170db6b7abdb2083 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=bc8957f4f5e1aafd00c82b52f4c82997b7cfc183
commit bc8957f4f5e1aafd00c82b52f4c82997b7cfc183
Author: Arnold D. Robbins <arnold@skeeve.com>
Date: Fri Sep 30 12:59:47 2022 +0300
Fix a memory leak.
diff --git a/ChangeLog b/ChangeLog
index bfa22e2b..519facfb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-09-30 Arnold D. Robbins <arnold@skeeve.com>
+
+ * interpret.h (r_interpret): For the `push' opcodes with
+ Node_elem_new, deref `m' before assigning m = dupnode(Nnull_string).
+ Thanks to Andrew Schorr and valgrind for the report.
+
2022-09-23 Arnold D. Robbins <arnold@skeeve.com>
* interpret.h (r_interpret): For the `push' opcodes with
diff --git a/interpret.h b/interpret.h
index fde02d2d..f703080d 100644
--- a/interpret.h
+++ b/interpret.h
@@ -217,6 +217,7 @@ uninitialized_scalar:
m->type = Node_var;
m->var_value = dupnode(Nnull_string);
}
+
if (do_lint)
lintwarn(isparam ?
_("reference to uninitialized
argument `%s'") :
@@ -235,6 +236,7 @@ uninitialized_scalar:
m->type = Node_var;
m->var_value = dupnode(Nnull_string);
}
+
if (do_lint)
lintwarn(isparam ?
_("reference to uninitialized
argument `%s'") :
@@ -242,6 +244,7 @@ uninitialized_scalar:
save_symbol->vname);
// set up local param by value
if (op != Op_push_arg_untyped) {
+ DEREF(m);
m = dupnode(Nnull_string);
}
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
interpret.h | 3 +++
2 files changed, 9 insertions(+)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] gawk branch, gawk-5.2-stable, updated. gawk-4.1.0-4920-gbc8957f4,
Arnold Robbins <=