IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 3, 2006, 1:16:16 PM (20 years ago)
Author:
drobbin
Message:

Fixed memory leak and output errors associated with psImageSlice -> psVectorSort and p_psVectorSampleMedian.

File:
1 edited

Legend:

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

    r7046 r7055  
    99*  @author Robert DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.71 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2006-05-03 00:27:51 $
     11*  @version $Revision: 1.72 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2006-05-03 23:16:16 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    389389    long N = outVector->n;                    // Number of elements
    390390    if (N < 2) {
    391         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    392                 "Error in psVectorSort:  Vector has less than 2 data entries!\n");
    393         psFree(outVector);
     391        //        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     392        //                "Error in psVectorSort:  Vector has less than 2 data entries!\n");
     393        //        psFree(outVector);
    394394        //        psFree(outVector);
    395395        //        outVector = NULL;
    396         return NULL;
     396        return outVector;
    397397    }
    398398    long l = N >> 1;
Note: See TracChangeset for help on using the changeset viewer.