IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

fix leaks in dvoMakeCorr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.