IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7319


Ignore:
Timestamp:
Jun 2, 2006, 4:11:11 PM (20 years ago)
Author:
Paul Price
Message:

Fixing memory leak when there is a CELL.TIME parse error.

File:
1 edited

Legend:

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

    r7311 r7319  
    373373            psLogMsg(__func__, PS_LOG_WARN, "Unrecognised FORMATS option for CELL.TIME: %s --- "
    374374                     "ignored.\n", timeFormat);
     375            psFree(timeFormatsIter);
     376            psFree(timeFormats);
    375377            return NULL;
    376378        }
     
    498500
    499501    psMetadataItem *item = psMetadataItemAllocPtr(pattern->name, PS_DATA_TIME, pattern->comment, time);
    500     psFree(time);
     502    psFree(time);                       // Drop reference
    501503    return item;
    502504}
Note: See TracChangeset for help on using the changeset viewer.