[PATCH] Small regexec.c fixes
Roland McGrath
roland@redhat.com
Mon Dec 29 21:10:00 GMT 2003
> I've applied the patch but in general we should avoid adding much code
> to free memory in case allocation fails. Maybe to free some huge blocks
> but not more. If the app runs out of memory it'll very soon terminate.
> No need to bloat the code to help doing this.
I disagree completely. It is important that library code never leak. It
very well might be used in server situations where allocations can fail at
maximum load, or with unreasonable client input, but then enough more
memory gets freed by cleaning up resources associated with clients as they
die, that the server need never die.
More information about the Libc-hacker
mailing list