Realloc in asn1.c

Arnaldo Carvalho de Melo acme at conectiva.com.br
Sun Oct 14 17:35:02 GMT 2001


Em Sun, Oct 14, 2001 at 02:21:13AM -0700, Andrew Tridgell escreveu:
> > I just noticed this while browsing the code.  Memory leaks seem to be a hot
> > topic at the moment.  Apologies if I am wrong.
> 
> I'll fix this for the sake of completeness, but please remember that

yup

> it is not allocation failures that cause memory leaks. Allocation
> failures are *extremely* rare on unix systems. So rare that making an
> allocation failure cause a exit(1) would not be completely
> unreasonable.

thats why bash has the xmalloc function that cause exit(1) like you said.

- Arnaldo




More information about the samba-technical mailing list