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