Lines Matching refs:newElement
305 DataCacheElement *newElement;
319 newElement = (DataCacheElement *)uprv_malloc(sizeof(DataCacheElement));
320 if (newElement == NULL) {
324 newElement->item = UDataMemory_createNewInstance(pErr);
326 uprv_free(newElement);
329 UDatamemory_assign(newElement->item, item);
333 newElement->name = (char *)uprv_malloc(nameLen+1);
334 if (newElement->name == NULL) {
336 uprv_free(newElement->item);
337 uprv_free(newElement);
340 uprv_strcpy(newElement->name, baseName);
353 newElement->name, /* Key */
354 newElement, /* Value */
360 fprintf(stderr, "Cache: [%s] <<< %p : %s. vFunc=%p\n", newElement->name,
361 newElement->item, u_errorName(subErr), newElement->item->vFuncs);
366 uprv_free(newElement->name);
367 uprv_free(newElement->item);
368 uprv_free(newElement);
372 return newElement->item;