IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 21, 2006, 12:23:58 AM (20 years ago)
Author:
Paul Price
Message:

Working, but leaks memory something chronic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel9_p0/psModules/src/astrom/pmConceptsWrite.c

    r6062 r6124  
    7373                           )
    7474{
     75    if (! cell->camera) {
     76        return false;
     77    }
    7578    if (cell) {
    7679        psMetadataItem *item = psMetadataLookup(cell->camera, concept->name); // Info we want
     
    9093    bool mdok = true;                   // Status of MD lookup
    9194    bool status = false;                // Status of setting header
     95    if (! fpa->camera) {
     96        return false;
     97    }
    9298    psMetadata *translation = psMetadataLookupMD(&mdok, fpa->camera, "TRANSLATION"); // FITS translation
    9399    if (! mdok) {
     
    158164{
    159165    bool mdOK = true;                   // Status of MD lookup
     166    if (! fpa->camera) {
     167        return false;
     168    }
    160169    psMetadata *defaults = psMetadataLookupMD(&mdOK, fpa->camera, "DEFAULTS");
    161170    if (! mdOK || ! defaults) {
     
    224233
    225234    bool mdStatus = true;               // Status of MD lookup
     235    if (! fpa->camera) {
     236        return false;
     237    }
    226238    psMetadata *database = psMetadataLookupMD(&mdStatus, fpa->camera, "DATABASE");
    227239    if (! mdStatus) {
     
    319331                       )
    320332{
     333    if (! fpa->camera) {
     334        return false;
     335    }
     336
    321337    // Try headers, database, defaults in order
    322338    psTrace(__func__, 3, "Trying to set concept %s...\n", concept->name);
Note: See TracChangeset for help on using the changeset viewer.