Realloc in asn1.c

Nigel Williams nigel at wednesday.demon.co.uk
Sun Oct 14 02:15:06 GMT 2001


I just noticed this while browsing the code.  Memory leaks seem to be a hot
topic at the moment.  Apologies if I am wrong.

BOOL asn1_write(ASN1_DATA *data, const void *p, int len)
{
	if (data->has_error) return False;
	if (data->length < data->ofs+len) {
		data->data = Realloc(data->data, data->ofs+len);
		if (!data->data) {
			data->has_error = True;
			return False;
		}

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba-technical mailing list