Re: [Squid-cvs] nt-2_5 squid/src/fs/awin32 aiops.c,1.1.62.2,1.1.62.3 store_dir_aufs.c,1.1.62.5,1.1.62.6 store_io_aufs.c,1.1.62.3,1.1.62.4

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 20 May 2002 12:48:15 +0200

On Monday 20 May 2002 11:46, Guido Serassio wrote:

> I have added this without looking how memPoolAlloc works after some
> problems during debug session on MS VisualStudio, because in debug
> mode sometimes the memory after a malloc is not clean.
>
> For example in store_dir_coss.c, line 750:
>
> cs = xmalloc(sizeof(CossInfo));
> if (cs == NULL)
> fatal("storeCossDirParse: couldn't xmalloc()
> CossInfo!\n");
>
> Debugging I had problems with some not initialized members of cs.

xmalloc do not clear the memmory. xcalloc does..

Most likely the CossInfo should be pooled.

Regards
Henrik
Received on Mon May 20 2002 - 05:24:49 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:15:29 MST