IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 28, 2008, 4:21:20 PM (18 years ago)
Author:
jhoblitt
Message:

-updaterun memleak fixes

File:
1 edited

Legend:

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

    r17180 r17219  
    256256    PXOPT_COPY_F32(config->args, where, "-solang_max", "solang", "<");
    257257
    258     if (!psListLength(where->list)) {
     258    if (!psListLength(where->list)
     259        && !psMetadataLookupBool(NULL, config->args, "-all")) {
    259260        psFree(where);
     261        where = NULL;
    260262        psError(PXTOOLS_ERR_DATA, false, "search parameters are required");
    261263        return false;
     
    267269    if ((!state) && (!label)) {
    268270        psError(PXTOOLS_ERR_DATA, false, "parameters are required");
     271        psFree(where);
    269272        return false;
    270273    }
     
    273276        // set chipRun.state to state
    274277        if (!pxwarpRunSetStateByQuery(config, where, state)) {
     278            psFree(where);
    275279            return false;
    276280        }
     
    280284        // set chipRun.label to label
    281285        if (!pxwarpRunSetLabelByQuery(config, where, label)) {
    282             return false;
    283         }
    284     }
     286            psFree(where);
     287            return false;
     288        }
     289    }
     290
     291    psFree(where);
    285292
    286293    return true;
Note: See TracChangeset for help on using the changeset viewer.