Bugs item #2034, was opened at 2005-06-15 00:07 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2034&group_id=426 Category: Interface (example) Group: None Status: Open Resolution: None Priority: 3 Submitted By: stefan coremans (stef) Assigned to: Nobody (None) Summary: memory leakage in DL module Initial Comment: asume the folowing file a.c int func (int a , int b) { return (a+b); } compiled with cc -o a.so --shared a.c this give you a.so when execute the following ruby file with memprofile under linux once the script has reached the gets function. You can see an important memory leak. when doining a similar trial with "void func();" there is no leak require 'dl/import' module LIBC extend DL::Importable p dlload './a.so' p extern "int func (int,int)" end 10000.times { p LIBC.func(3,2) } gets additional info : ruby 1.8.1 (2003-12-25) [i386-linux-gnu] memprof 0.5.1 std fedora core 3 install. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2034&group_id=426