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/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;
Note: See TracChangeset for help on using the changeset viewer.