IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13396


Ignore:
Timestamp:
May 16, 2007, 6:16:48 AM (19 years ago)
Author:
rhl
Message:

Fixed memory leaks

File:
1 edited

Legend:

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

    r11674 r13396  
    1010 *  @author EAM, IfA
    1111 *
    12  *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2007-02-07 01:15:49 $
     12 *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2007-05-16 16:16:48 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    842842                psFree(x);
    843843            }
     844            psFree(resid);
     845           
    844846            return false;
    845847        }
     
    848850        if (fit == NULL) {
    849851            psError(PS_ERR_UNKNOWN, false, "Could not call psPolynomial3DEvalVector().  Returning false.\n");
     852            if (xIn == NULL) {
     853                psFree(x);
     854            }
    850855            psFree(resid);
    851856            return false;
Note: See TracChangeset for help on using the changeset viewer.