[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, feature/fix-ns-memleak, updated. gawk-4.
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, feature/fix-ns-memleak, updated. gawk-4.1.0-3614-g9a0812e |
Date: |
Sun, 20 Jan 2019 15:21:00 -0500 (EST) |
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, feature/fix-ns-memleak has been updated
via 9a0812e1b5ed67c3e75e70749a7e2a54f9c2bfcc (commit)
via 5766636f7bb7eb6d8fa9fd1b097ca74329062173 (commit)
via 7560c312229e5967ff1b479b8ced6d3e8e99dc37 (commit)
via c73d262642ee3a3d6585dc44acc62c432910f920 (commit)
via fa9c6b921f784ad6f35f36b65635969ae4fade2d (commit)
via 82a1b8457331ee7fa439d67676ceb68cab017966 (commit)
via 5812db74483bce781281422953d359fde5be6a99 (commit)
via 69b4c6e0b70f92e829848e21c4d8983fac904f30 (commit)
from a6ece4a82072150e4b269b5698bb8caf14075bcb (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=9a0812e1b5ed67c3e75e70749a7e2a54f9c2bfcc
commit 9a0812e1b5ed67c3e75e70749a7e2a54f9c2bfcc
Merge: a6ece4a 5766636
Author: Arnold D. Robbins <address@hidden>
Date: Sun Jan 20 22:20:47 2019 +0200
Merge branch 'master' into feature/fix-ns-memleak
diff --cc ChangeLog
index 7b0b371,5e3f9a2..5879c2f
--- a/ChangeLog
+++ b/ChangeLog
@@@ -1,43 -1,42 +1,82 @@@
2019-01-20 Arnold D. Robbins <address@hidden>
+ Restore functionality.
+
+ * awkgram.y (qualify_name): Remove `is_var' param, always check
+ for all upper case. Adjust all calls.
+ (Grammar): Do qualify_name for function calls also.
+
+2019-01-19 Arnold D. Robbins <address@hidden>
+
+ Continue fixing memory leaks.
+
+ * awk.h (set_current_namespace): Declare function.
+ * awkgram.y: Change all assignments of current_namespace to calls
+ to set_current_namespace.
+ (is_all_upper, qualify_name): New functions.
+ (in_function): Change type to bool, and fix usages.
+ (Grammar): Use qualify_name on variables and function names.
+ * main.c: Change all assignments of current_namespace to calls
+ to set_current_namespace.
+ (set_current_namespace): New function.
+ * profile.c (pp_namespace): Don't free old current_namespace. Add
+ comment explaining why.
+
+2019-01-18 Arnold D. Robbins <address@hidden>
+
+ Start fixing memory leaks related to namespaces.
+
+ * awkgram.y (Grammar): At simple_variable -> NAME, qualify names
+ before lookup/install.
+ (next_sourcefile): Check if need to free current_namespace before
+ assigning to it.
+ (yylex): Fix length of string to be dup'ed before returning
+ NAME or FUNC_CALL.
+ (set_namespace): Always free ns->lextok, adjust memory allocations
+ appropriately.
+ * main.c (main): Check if need to free current_namespace before
+ assigning to it.
+ * profile.c (pp_namespace): Ditto. (This may not be necessary.)
+
++2019-01-18 Arnold D. Robbins <address@hidden>
++
+ * debug.c (do_set_var): Add comments before calls to assoc_set.
+ * interpret.h (r_interpret): For Op_sub_array, deref the subscript
+ appropriately. Thanks to Andy Schorr for the catch.
+
+ 2019-01-15 Arnold D. Robbins <address@hidden>
+
+ * array.c (asort_actual): Use assoc_set in 2 places.
+ * awk.h (assoc_set): Improve leading comment.
+ * debug.c (do_set_var): Use assoc_set in 2 places.
+ * field.c (set_element, update_PROCINFO_str, update_PROCINFO_num):
+ Use assoc_set in each.
+ * gawkapi.c (api_set_array_element): Use assoc_set.
+ * interpret.h (r_interpret): Use assoc_set.
+ * main.c (init_args, load_environ, load_procinfo_argv):
+ Use assoc_set in each.
+ * mpfr.c (do_mpfr_intdiv): Use assoc_set in 2 places.
+ * str_array.c (str_lookup): Fix leading comment.
+ * symbol.c (install): Use assoc_set.
+
+ 2019-01-15 Andrew J. Schorr <address@hidden>
+
+ * builtin.c (do_match, do_intdiv): Remove unused `sub' and `lhs'
+ variables, since assoc_set is now doing all of the work.
+
+ 2019-01-15 Andrew J. Schorr <address@hidden>
+
+ * awk.h (assoc_set): Move the definition lower down because it
+ needs to be after unref is declared.
+ * builtin.c (do_match): Use assoc_set in 3 places.
+ (do_intdiv): Use assoc_set in 2 places.
+ (do_typeof): Use assoc_set in 2 places.
+
+ 2019-01-14 Andrew J. Schorr <address@hidden>
+
+ * awk.h (assoc_set): Add new inline function to set an array element
+ to eliminate code duplication and reduce the chance of memory leaks.
+
2019-01-14 Andrew J. Schorr <address@hidden>
* builtin.c (do_typeof): Fix memory leak when populating the
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 39 +++++++++++++++++++++++++++++++++++++
array.c | 30 +++++++++++------------------
awk.h | 15 +++++++++++++++
builtin.c | 62 ++++++++---------------------------------------------------
debug.c | 16 +++++++++-------
field.c | 20 +++----------------
gawkapi.c | 9 ++-------
interpret.h | 12 +++---------
main.c | 64 ++++++++++++++++++++++++++++---------------------------------
mpfr.c | 10 ++--------
str_array.c | 2 +-
symbol.c | 7 ++-----
12 files changed, 124 insertions(+), 162 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, feature/fix-ns-memleak, updated. gawk-4.1.0-3614-g9a0812e,
Arnold Robbins <=