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