IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2662


Ignore:
Timestamp:
Dec 7, 2004, 4:03:49 PM (22 years ago)
Author:
evanalst
Message:

Make psScalarAlloc and psScalarCopy return null if operation failed.

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psScalar.c

    r2273 r2662  
    88 *  @author Ross Harman, MHPCC
    99 *
    10  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-11-04 01:04:57 $
     10 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-12-08 02:03:49 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7373                PS_ERRORTEXT_psScalar_UNSUPPORTED_TYPE,
    7474                dataType);
     75        psFree(scalar);
     76        return NULL;
    7577    }
    7678
     
    131133                PS_ERRORTEXT_psScalar_UNSUPPORTED_TYPE,
    132134                dataType);
     135        return NULL;
    133136    }
    134137
  • trunk/psLib/src/mathtypes/psScalar.c

    r2273 r2662  
    88 *  @author Ross Harman, MHPCC
    99 *
    10  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-11-04 01:04:57 $
     10 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-12-08 02:03:49 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7373                PS_ERRORTEXT_psScalar_UNSUPPORTED_TYPE,
    7474                dataType);
     75        psFree(scalar);
     76        return NULL;
    7577    }
    7678
     
    131133                PS_ERRORTEXT_psScalar_UNSUPPORTED_TYPE,
    132134                dataType);
     135        return NULL;
    133136    }
    134137
Note: See TracChangeset for help on using the changeset viewer.