IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23669


Ignore:
Timestamp:
Apr 1, 2009, 4:49:12 PM (17 years ago)
Author:
eugene
Message:

return error on error adding ghosts to analysis; plug mem leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroExtractGhosts.c

    r23592 r23669  
    107107                    if (ghosts == NULL) {
    108108                        ghosts = psArrayAllocEmpty (100);
    109                         psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.GHOSTS", PS_DATA_ARRAY, "astrometry matches", ghosts);
     109                        if (!psMetadataAdd (ghostReadout->analysis, PS_LIST_TAIL, "PSASTRO.GHOSTS", PS_DATA_ARRAY, "astrometry matches", ghosts)) {
     110                          psError(PSASTRO_ERR_CONFIG, false, "failure to add ghosts to readout");
     111                          return false;
     112                        }
    110113                        psFree (ghosts);
    111114                    }
     
    127130    }
    128131
     132    psastroExtractFreeChipBounds();
     133
    129134    psFree (view);
    130135    return true;
Note: See TracChangeset for help on using the changeset viewer.