* variable.c (remove_trace): should not access already freed area.
* variable.c (rb_f_untrace_var): fix memory leak. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eaab0aa79a
commit
d0129370f0
@ -1,3 +1,9 @@
|
||||
Fri Oct 19 23:40:37 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* variable.c (remove_trace): should not access already freed area.
|
||||
|
||||
* variable.c (rb_f_untrace_var): fix memory leak.
|
||||
|
||||
Fri Oct 19 17:55:14 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* marshal.c (w_uclass): cloned class is not user
|
||||
|
@ -598,7 +598,9 @@ remove_trace(entry)
|
||||
trace->next = next->next;
|
||||
free(next);
|
||||
}
|
||||
trace = next;
|
||||
else {
|
||||
trace = next;
|
||||
}
|
||||
}
|
||||
entry->trace = t.next;
|
||||
}
|
||||
@ -629,7 +631,6 @@ rb_f_untrace_var(argc, argv)
|
||||
trace->removed = 1;
|
||||
trace = next;
|
||||
}
|
||||
entry->trace = 0;
|
||||
|
||||
if (!entry->block_trace) remove_trace(entry);
|
||||
return ary;
|
||||
|
Loading…
x
Reference in New Issue
Block a user