ffi/ffi — Issue #174: FFI::Pointer free() instance method does not free.
Author: dmlary
Created: 2011-11-06 19:11:02+00:00
State: open

Calling the free() method of a FFI::Pointer instance does not actually free the memory. Following code sample leaks memory. Not sure if the fix for issue #140 resolves this.

```ruby
while [ true ]
ptr = FFI::MemoryPointer.new(1024 ** 2)
ptr.autorelease = false
ptr = FFI::Pointer.new(ptr.address)
ptr.free
end
```