regfree() missing? [was Re: svn commit: trunk/busybox: findutils include]

Denis Vlasenko vda.linux at googlemail.com
Sun Jun 17 12:28:54 UTC 2007


On Saturday 16 June 2007 17:07, Bernhard Fischer wrote:
> On Fri, Jun 15, 2007 at 04:43:11PM -0700, vda at busybox.net wrote:
> >Author: vda
> >Date: 2007-06-15 16:43:11 -0700 (Fri, 15 Jun 2007)
> >New Revision: 18827
> >
> >Log:
> >find: add conditional support for -maxdepth and -regex
> >(needed for Linux 2.6.22-rc4 build)
> 
> Is there a regfree() missing for CLEAN_UP?

Absolutely. In find we also don't bother to free() a lot
of allocated structs.

IIUC regfree() is needed only once, not after each regexec(),
right?
--
vda



More information about the busybox mailing list