IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17219


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

-updaterun memleak fixes

Location:
trunk/ippTools/src
Files:
4 edited

Legend:

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

    r17216 r17219  
    352352    if ((!state) && (!label)) {
    353353        psError(PXTOOLS_ERR_DATA, false, "parameters are required");
     354        psFree(where);
    354355        return false;
    355356    }
     
    358359        // set chipRun.state to state
    359360        if (!pxcamRunSetStateByQuery(config, where, state)) {
     361            psFree(where);
    360362            return false;
    361363        }
     
    365367        // set chipRun.label to label
    366368        if (!pxcamRunSetLabelByQuery(config, where, label)) {
    367             return false;
    368         }
    369     }
     369            psFree(where);
     370            return false;
     371        }
     372    }
     373
     374    psFree(where);
    370375
    371376    return true;
  • trunk/ippTools/src/chiptool.c

    r17188 r17219  
    327327    if ((!state) && (!label)) {
    328328        psError(PXTOOLS_ERR_DATA, false, "parameters are required");
     329        psFree(where);
    329330        return false;
    330331    }
     
    333334        // set chipRun.state to state
    334335        if (!pxchipRunSetStateByQuery(config, where, state)) {
     336            psFree(where);
    335337            return false;
    336338        }
     
    340342        // set chipRun.label to label
    341343        if (!pxchipRunSetLabelByQuery(config, where, label)) {
    342             return false;
    343         }
    344     }
     344            psFree(where);
     345            return false;
     346        }
     347    }
     348
     349    psFree(where);
    345350
    346351    return true;
  • 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;
  • trunk/ippTools/src/warptoolConfig.c

    r17180 r17219  
    159159            "define max solar angle", NAN);
    160160
     161    psMetadataAddBool(updaterunArgs, PS_LIST_TAIL, "-all",  0,
     162            "allow everything to be queued without search terms", false);
    161163    psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-state", 0,
    162164            "set state", NULL);
Note: See TracChangeset for help on using the changeset viewer.