public
Rubygem
Description: Ruby process monitor
Homepage: http://god.rubyforge.org
Clone URL: git://github.com/mojombo/god.git
Search Repo:
Click here to lend your support to: god and make a donation at www.pledgie.com !
Don't leak events on error in the kqueue handler
kevinclark (author)
Wed Mar 26 11:23:05 -0700 2008
commit  87c194332a77399b96efec701a242a0df16778d8
tree    b417d333cd91be14caf428ed55a1dc50c019c752
parent  b69311d226b8569c27f2e0ed641f59eb7b018d1a
...
80
81
82
 
83
84
85
...
80
81
82
83
84
85
86
0
@@ -80,6 +80,7 @@ kqh_handle_events()
0
   nevents = kevent(kq, NULL, 0, events, num_to_fetch, NULL);
0
   
0
   if (-1 == nevents) {
0
+ free(events);
0
     rb_raise(rb_eStandardError, strerror(errno));
0
   } else {
0
     for (i = 0; i < nevents; i++) {

Comments

    No one has commented yet.