IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 23, 2006, 3:16:55 PM (20 years ago)
Author:
jhoblitt
Message:

fix memory leaks

File:
1 edited

Legend:

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

    r7658 r7671  
    172172    if (!psDBTransaction(config->dbh)) {
    173173        psError(PS_ERR_UNKNOWN, false, "database error");
     174        psFree(detrendExps);
    174175        return false;
    175176    }
     
    193194    }
    194195
     196    psFree(detrendExps);
     197
    195198    for (long i = 0; i < psArrayLength(inputExps); i++) {
    196199        if (!detInputExpInsertObject(config->dbh, inputExps->data[i])) {
     
    200203                psError(PS_ERR_UNKNOWN, false, "database error");
    201204            }
     205            psFree(inputExps);
    202206            return false;
    203207        }
    204208    }
     209    psFree(inputExps);
    205210
    206211    // point of no return for det_id creation
Note: See TracChangeset for help on using the changeset viewer.