[xmlsec] xmlSecPtrListEnsureSize failing
Aleksey Sanin
aleksey at aleksey.com
Thu Jan 22 09:36:19 PST 2004
> if (list->data) {
> newData = (xmlSecPtr*)xmlRealloc(list->data, sizeof(xmlSecPtr) *
> newSize);
> } else {
> newData = (xmlSecPtr*)xmlMalloc(sizeof(xmlSecPtr) * newSize);
> }
>
Sorry but I don't see this code. What I have is :
if(newSize < gInitialSize) {
newSize = gInitialSize;
}
newData = (xmlSecPtr*)xmlRealloc(list->data, sizeof(xmlSecPtr) * newSize);
> Am I missing something that wouldnt require the above as I see the call to
> xmlFree(list->data) in xmlSecPtrListEmpty, but dont see where list->data is
> actually alloc'd.
Few lines bellow:
list->data = newData;
list->max = newSize;
It sounds like you have changed sources and I don't think I can help you to debug
your changes.
Aleksey
More information about the xmlsec
mailing list