IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2006, 3:03:35 PM (20 years ago)
Author:
desonia
Message:

fixed a leak in psFits table reading and cleaned up things according to
the API Delta report.

-rdd
`

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsHeader.c

    r5511 r6354  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-11-14 22:18:30 $
     9 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-02-08 01:03:34 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    167167}
    168168
    169 psMetadata* psFitsReadHeaderSet(psMetadata* out,
    170                                 const psFits* fits)
     169psMetadata* psFitsReadHeaderSet(const psFits* fits)
    171170{
    172171    if (fits == NULL) {
    173172        psError(PS_ERR_BAD_PARAMETER_NULL, true,
    174173                PS_ERRORTEXT_psFits_NULL);
    175         psFree(out);
    176174        return NULL;
    177175    }
    178176
    179     if (out == NULL) {
    180         out = psMetadataAlloc();
    181         if (out == NULL) {
    182             psError(PS_ERR_UNKNOWN, false,
    183                     "Failed to allocate a new psMetadata container.");
    184             return NULL;
    185         }
    186     }
     177    psMetadata* out = psMetadataAlloc();
    187178
    188179    int size = psFitsGetSize(fits);
Note: See TracChangeset for help on using the changeset viewer.