IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Free what we've allocated in the event of an error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psStats.c

    r15370 r15407  
    1313 * use ->min and ->max (PS_STAT_USE_RANGE)
    1414 *
    15  *  @version $Revision: 1.219 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2007-10-24 19:08:24 $
     15 *  @version $Revision: 1.220 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2007-10-29 20:36:28 $
    1717 *
    1818 *  Copyright 2006 IfA, University of Hawaii
     
    340340
    341341    // Sort the temporary vector.
    342     // XXX this is messed up: should psVectorSort free on error or not?
    343342    if (!psVectorSort(outVector, outVector)) { // Sort in-place (since it's a copy, it's OK)
    344343        psError(PS_ERR_UNEXPECTED_NULL, false, _("Failed to sort input data."));
     
    346345        stats->sampleLQ = NAN;
    347346        stats->sampleMedian = NAN;
     347        psFree(outVector);
    348348        return true;
    349349    }
Note: See TracChangeset for help on using the changeset viewer.