Hi Michal, you have just introduced MEM leak, dude! :-) On Tue, Sep 03, 2002 at 01:09:11AM +0900, Michal Rokos wrote: > +#define init_funcname(buf, file) do {\ > + int len = init_funcname_len(buf, file);\ > + char *tmp = ALLOCA_N(char, len+1);\ > + if (!tmp) rb_memerror();\ - if (!tmp) rb_memerror();\ + if (!tmp) {\ + free(*buf);\ + rb_memerror();\ + } > + strcpy(tmp, *buf);\ > + free(*buf);\ > + *buf = tmp;\ > +} while (0) All shame goes to you (and me)... Best regards Michal -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michal Rokos Czech Technical University, Prague E-mail:m.rokos / sh.cvut.cz ICQ:36118339 Jabber:majkl / jabber.cz -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-