IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 15, 2010, 1:12:26 PM (16 years ago)
Author:
watersc1
Message:

Change to make stack summary code run at 9PM HST to attempt to dodge a race condition. Probablyl not a final solution, but will work for now.

Location:
branches/czw_branch/20100519
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20100519

  • branches/czw_branch/20100519/ippTools/src/pxtools.c

    r28304 r28338  
    250250        psMetadataItem *item = NULL;
    251251        while ((item = psListGetAndIncrement(iter))) {
     252            psMetadataItem *new = psMetadataItemCopy(item);
    252253            // need to change the name and comment
    253             psFree (item->name);
    254             item->name = psStringCopy (field);
    255             psFree (item->comment);
    256             item->comment = psStringCopy (op);
    257             if (!psMetadataAddItem(where, item, PS_LIST_TAIL, PS_META_DUPLICATE_OK)) {
     254            psFree (new->name);
     255            new->name = psStringCopy (field);
     256            psFree (new->comment);
     257            new->comment = psStringCopy (op);
     258            if (!psMetadataAddItem(where, new, PS_LIST_TAIL, PS_META_DUPLICATE_OK)) {
    258259                psError(psErrorCodeLast(), false, "failed to add item %s", field);
    259260                psFree(where);
     
    261262            }
    262263        }
    263         psFree (iter);
     264        psFree(iter);
    264265    }
    265266    return true;
Note: See TracChangeset for help on using the changeset viewer.