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); }