[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, xgawk-build, updated. 876bfa5513ae175535
From: |
Andrew J. Schorr |
Subject: |
[gawk-diffs] [SCM] gawk branch, xgawk-build, updated. 876bfa5513ae175535a5e67e90973b712fce8399 |
Date: |
Mon, 09 Apr 2012 12:17:18 +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-build has been updated
via 876bfa5513ae175535a5e67e90973b712fce8399 (commit)
from 059a60ca01fbe31d4e6cea8cde7fa086abec90aa (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=876bfa5513ae175535a5e67e90973b712fce8399
commit 876bfa5513ae175535a5e67e90973b712fce8399
Author: Andrew J. Schorr <address@hidden>
Date: Mon Apr 9 08:17:06 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-build, updated. 876bfa5513ae175535a5e67e90973b712fce8399,
Andrew J. Schorr <=