IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41660


Ignore:
Timestamp:
Jun 9, 2021, 3:10:09 PM (5 years ago)
Author:
eugene
Message:

fix leaks in dvoMakeCorr

Location:
trunk/dvoTools/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dvoTools/src/dvoMakeCorrArguments.c

    r20180 r41660  
    3636    // these options override the DVOCORR recipe values loaded from recipe files
    3737    // psMetadata *options = pmConfigRecipeOptions (config, RECIPE_NAME);
     38    // EAM 20210607 : no dvocorr recipe values are actually defined
    3839
    3940    // XXX add options from command-line here
  • trunk/dvoTools/src/dvoMakeCorrLoop.c

    r20372 r41660  
    3232    pmFPAview *view = pmFPAviewAlloc(0);// View for level of interest
    3333
    34     // load data at FPA leve
    35     if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) {
    36         psError(PS_ERR_UNKNOWN, false, "failed IO for fpa in psphot\n");
    37         psFree(view);
    38         return false;
    39     }
    40 
    4134    // XXX for now, do not use the I/O system to read this file; do it manually
    4235    if (!pmFPAfileOpen (input, view, config)) {
     
    4639    }
    4740    input->state = PM_FPA_STATE_INACTIVE; 
     41
     42    // load data at FPA leve
     43    if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) {
     44        psError(PS_ERR_UNKNOWN, false, "failed IO for fpa in psphot\n");
     45        psFree(view);
     46        return false;
     47    }
    4848
    4949    // process each chip in the FPA
     
    9898    }
    9999
     100    input->state = PM_FPA_STATE_OPEN; 
    100101    pmFPAfileClose (input, view);
    101102    psFree (view);
  • trunk/dvoTools/src/dvoMakeCorrUnbin.c

    r20562 r41660  
    4848
    4949        outData = pmReadoutAlloc (outCell);
     50        psFree (outData); // free the extra reference
    5051        assert (outData != NULL);
    5152    }
Note: See TracChangeset for help on using the changeset viewer.