IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7429


Ignore:
Timestamp:
Jun 8, 2006, 10:11:07 AM (20 years ago)
Author:
Paul Price
Message:

Fixing double free in BIASSEC header item --- neglected to increment
the reference counter to balance the free below, which is required
because we may construct a new MDitem (for the list, when there's more
than one header).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsRead.c

    r7410 r7429  
    249249                psFree(nameSource);
    250250                if (mdok && strlen(source) && strcasecmp(source, "HEADER") == 0) {
    251                     headerItem = psMetadataLookup(hdu->header, conceptItem->data.V);
     251                    headerItem = psMemIncrRefCounter(psMetadataLookup(hdu->header, conceptItem->data.V));
    252252                }
    253253                // Leave the error handling to pmConceptsFromCamera, which should already have been called
Note: See TracChangeset for help on using the changeset viewer.