From: matz@... (Yukihiro Matsumoto) Date: 2002-09-03T00:00:42+09:00 Subject: Re: [MemLeak] in dln.c Hi, In message "Re: [MemLeak] in dln.c" on 02/09/02, Michal Rokos writes: |> > if ((init_fct = (void(*)())GetProcAddress(handle, buf)) == NULL) { | Data_Wrap_Struct(rb_cData, 0, free, buf); |> > + rb_loaderror("%s - %s\n%s", dln_strerror(), buf, file); /* FIXME: MEMLEAK for buf */ |> > } |> > free(buf); | | (and on the 2nd place as well.) | | I know, that it has a flaw in it, but it could be OK. I'd use alloca. I want dln.c to be separatable from Ruby as much as possible. matz.