mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/tk/tcltklib.c (lib_eventloop_ensure): refer freed pointer
[ruby-core:07744] and memory leak. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eda34de0df
commit
d23b7958c5
2 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Apr 21 15:19:13 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
|
* ext/tk/tcltklib.c (lib_eventloop_ensure): refer freed pointer
|
||||||
|
[ruby-core:07744] and memory leak.
|
||||||
|
|
||||||
Fri Apr 21 12:14:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Apr 21 12:14:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* ext/socket/socket.c: document update patch from Sam Roberts
|
* ext/socket/socket.c: document update patch from Sam Roberts
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* Oct. 24, 1997 Y. Matsumoto
|
* Oct. 24, 1997 Y. Matsumoto
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define TCLTKLIB_RELEASE_DATE "2006-04-18"
|
#define TCLTKLIB_RELEASE_DATE "2006-04-21"
|
||||||
|
|
||||||
#include "ruby.h"
|
#include "ruby.h"
|
||||||
#include "rubysig.h"
|
#include "rubysig.h"
|
||||||
|
@ -1696,6 +1696,8 @@ lib_eventloop_ensure(args)
|
||||||
|
|
||||||
rb_thread_critical = ptr->thr_crit_bup;
|
rb_thread_critical = ptr->thr_crit_bup;
|
||||||
|
|
||||||
|
free(ptr);
|
||||||
|
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1724,10 +1726,10 @@ lib_eventloop_ensure(args)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
free(ptr);
|
|
||||||
|
|
||||||
rb_thread_critical = ptr->thr_crit_bup;
|
rb_thread_critical = ptr->thr_crit_bup;
|
||||||
|
|
||||||
|
free(ptr);
|
||||||
|
|
||||||
DUMP2("finish current eventloop %lx", current_evloop);
|
DUMP2("finish current eventloop %lx", current_evloop);
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue