IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15406


Ignore:
Timestamp:
Oct 29, 2007, 10:35:31 AM (19 years ago)
Author:
Paul Price
Message:

Only free the vector if we allocated it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psVector.c

    r15070 r15406  
    1010*  @author Joshua Hoblitt, University of Hawaii
    1111*
    12 *  @version $Revision: 1.98 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2007-09-28 20:59:48 $
     12*  @version $Revision: 1.99 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2007-10-29 20:35:31 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    426426
    427427    if (!psVectorSortInPlace(outVector)) {
    428         psFree(outVector);
     428        if (outVector != inVector) {
     429            // It was allocated here.
     430            psFree(outVector);
     431        }
    429432        return NULL;
    430433    }
Note: See TracChangeset for help on using the changeset viewer.