From 876bfa5513ae175535a5e67e90973b712fce8399 Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Mon, 9 Apr 2012 08:17:06 -0400 Subject: Fix memory management bug in unset_ERRNO. --- eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 82cca9ed..e3ab52eb 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 */ -- cgit v1.2.3