From f4c54eada1905159110c4c81db86faa57e4753b6 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 21 Feb 2009 13:00:36 +0000 Subject: [PATCH] line 922 removed: no automatic deletion of @xxx[par] --- ChangeLog | 3 +++ src/frontend/parse.c | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 49a7d3e62..c6a8e19ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2009-02-21 Holger Vogt + * parse.c:922 prevent automtic deletion of @xxx[par] + 2009-02-20 Holger Vogt * x11disp.c: allow closing of help windows with WM x-button diff --git a/src/frontend/parse.c b/src/frontend/parse.c index 69f806185..1004a27c3 100644 --- a/src/frontend/parse.c +++ b/src/frontend/parse.c @@ -918,9 +918,12 @@ mksnode(char *string) /* va: tfree v in case of @xxx[par], because vec_get created a new vec and nobody will free it elsewhere */ - if (v && v->v_name && *v->v_name=='@' && isreal(v) && v->v_realdata) { + /*if (v && v->v_name && *v->v_name=='@' && isreal(v) && v->v_realdata) { vec_free(v); - } + } */ + /* The two lines above have been commented out to prevent deletion of @xxx[par] + after execution of only a single command like plot @xxx[par] or write. We need to + monitor if this will lead to excessive memory usage. h_vogt 090221 */ return (p); }