[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, xgawk, updated. 247e18a50b836bedcaec2575
From: |
Andrew J. Schorr |
Subject: |
[gawk-diffs] [SCM] gawk branch, xgawk, updated. 247e18a50b836bedcaec2575a31f2802e14721c9 |
Date: |
Mon, 09 Apr 2012 12:17:15 +0000 |
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, xgawk has been updated
via 247e18a50b836bedcaec2575a31f2802e14721c9 (commit)
from 76fce411492be9713284936f23a4cd90f9454ce0 (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=247e18a50b836bedcaec2575a31f2802e14721c9
commit 247e18a50b836bedcaec2575a31f2802e14721c9
Author: Andrew J. Schorr <address@hidden>
Date: Mon Apr 9 08:17:01 2012 -0400
Fix memory management bug in unset_ERRNO.
diff --git a/ChangeLog b/ChangeLog
index 4a0360a..0d405ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-09 Andrew J. Schorr <address@hidden>
+
+ * eval.c (unset_ERRNO): Fix memory management bug -- need to use
+ dupnode with Nnull_string.
+
2012-04-08 Andrew J. Schorr <address@hidden>
* Makefile.am (valgrind): Define VALGRIND instead of redefining AWK.
diff --git a/eval.c b/eval.c
index 82cca9e..e3ab52e 100644
--- a/eval.c
+++ b/eval.c
@@ -1021,7 +1021,7 @@ void
unset_ERRNO(void)
{
unref(ERRNO_node->var_value);
- ERRNO_node->var_value = Nnull_string;
+ ERRNO_node->var_value = dupnode(Nnull_string);
}
/* update_NR --- update the value of NR */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
eval.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, xgawk, updated. 247e18a50b836bedcaec2575a31f2802e14721c9,
Andrew J. Schorr <=