Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

issue with ree and lib.free(pointer). Fixed.

  • Loading branch information...
commit 12d8d7546e80c2d1c426b17f82bf970e94e9fe4d 1 parent d59866c
@jmettraux authored
Showing with 13 additions and 3 deletions.
  1. +5 −0 CHANGELOG.txt
  2. +2 −2 lib/rufus/tokyo/outlen.rb
  3. +6 −1 test/aaron.rb
View
5 CHANGELOG.txt
@@ -2,6 +2,11 @@
= rufus-tokyo CHANGELOG.txt
+== rufus-tokyo - 1.0.5 not yet released
+
+- bug : issue with ree and lib.free(pointer)
+
+
== rufus-tokyo - 1.0.4 released 2009/12/25
- bug : memory leak, gotten values not freed
View
4 lib/rufus/tokyo/outlen.rb
@@ -42,8 +42,8 @@ def outlen_op (method, *args)
ensure
outlen.free
- #lib.tcfree(out)
- lib.free(out)
+ lib.tcfree(out)
+ #lib.free(out)
end
end
end
View
7 test/aaron.rb
@@ -4,7 +4,12 @@
def show_memory
3.times { GC.start } # try to clean up
- mem = `ps -o rss -p #{Process.pid}`[/\d+/]
+ #mem = `ps -o rss -p #{Process.pid}`[/\d+/]
+ mem = `ps -o vsz -p #{Process.pid}`[/\d+/]
+ #mem = File.open("/proc/#{Process.pid}/status", 'r') { |ps|
+ # 14.times { ps.gets }
+ # ps.gets.split[1].to_i
+ #}
puts "Current memory: #{mem}"
end
Please sign in to comment.
Something went wrong with that request. Please try again.