aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--symbol.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6850a33d..3a38eb5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-05-15 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ * symbol.c (load_symbols): Plug minor memory leak by calling unref(tmp)
+ on "identifiers" string after assoc_lookup is done with it.
+
2015-05-05 Arnold D. Robbins <arnold@skeeve.com>
* awkgram.y (yylex): Yet Another Fix for parsing bracket
diff --git a/symbol.c b/symbol.c
index 845d3797..84574e7b 100644
--- a/symbol.c
+++ b/symbol.c
@@ -560,6 +560,7 @@ load_symbols()
memset(sym_array, '\0', sizeof(NODE)); /* PPC Mac OS X wants this */
null_array(sym_array);
+ unref(tmp);
unref(*aptr);
*aptr = sym_array;