You are right that if a malloc fails, it will behave unpredictably.  PPro is 
going to abort sooner or later in that case anyway, so I agree the checks are 
probably pointless.


-
>    g_cl=(CLASS**)realloc(g_cl, sizeof(CLASS*)*g_iSizeClass); 
>    if (!g_cl)
>    {
>      g_ppsv->ErrMessage("No memory for class table:",szargs[1]);
>      return;
>    }
>   }
> 
> //overall length here is one less that realloc above?  Reason?

Note sure if you are referring to realloc of lists of classes (CLASS**) versus 
realloc of class info for specific a specific class (CLASS*).  If so, yes the 
alloc's are different.



Reply via email to