IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7695


Ignore:
Timestamp:
Jun 26, 2006, 11:41:21 AM (20 years ago)
Author:
jhoblitt
Message:

fix memory leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/dettool.c

    r7694 r7695  
    20512051        );
    20522052    }
     2053    psFree(detrendExps);
    20532054
    20542055    // start a transaction so we don't end up with an incremented iteration
     
    20912092            return false;
    20922093        }
    2093         psArrayAdd(newInputExps, 0, detInputExpRowAlloc(
     2094        detInputExpRow *newInputExp = detInputExpRowAlloc(
    20942095            (psS32)atol(det_id),
    20952096            newIteration,
     
    21012102            inputExp->filter,
    21022103            inputExp->stats
    2103         ));
     2104        );
     2105        psArrayAdd(newInputExps, 0, newInputExp);
     2106        psFree(newInputExp);
    21042107    }
    21052108    psFree(iter);
     
    21132116                psError(PS_ERR_UNKNOWN, false, "database error");
    21142117            }
     2118            psFree(newInputExps);
    21152119            return false;
    21162120        }
    21172121    }
     2122    psFree(newInputExps);
    21182123
    21192124    // point of no return for det_id creation
Note: See TracChangeset for help on using the changeset viewer.