On Tue, Nov 11, 2014 at 5:11 PM, Joerg-Cyril.Hoehle@t-systems.com wrote:
No, reread-the paragraph starting with: "You can use FFI:FOREIGN-FREE to free the trampoline associated with a FFI:FOREIGN-FUNCTION object, ..."
The paragraph explains that it's not trivial to grab the exact object corresponding to the trampoline. If you don't grab it, it will leak.
Got it. Well, thanks for your comments! I think we should be able to do a similar interface using libffi's closure API. It will certainly have the same gotcha's as CLISP's API and it'll be important to document them properly.
Cheers,