IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 24, 2013, 1:37:30 PM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20130509
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509

  • branches/eam_branches/ipp-20130509/psModules

  • branches/eam_branches/ipp-20130509/psModules/src/detrend/pmDark.c

    r34800 r35594  
    383383      }
    384384      values_set->data[i] = values;
    385     }
    386 
     385      psFree(orders);
     386    }
     387     
    387388    // retrieve the norm vector, if supplied
    388389    psVector *norm       = psMetadataLookupPtr(&mdok, output->analysis, "DARK.NORM");
     
    433434                }
    434435                pmReadout *readout = inputs->data[r]; // Input readout
     436                if ((!readout)||(!readout->image)) {
     437                  mask->data.PS_TYPE_VECTOR_MASK_DATA[r] = 0xff;
     438                  continue;
     439                }                 
    435440                int yIn = i - readout->row0; // y position on input readout
    436441                int xIn = j - readout->col0; // x position on input readout
     
    504509    psFree(mask);
    505510
     511    for (int i = 0; i < max_orders->n; i++) {
     512      psFree(poly_set->data[i]);
     513      psArray *values = values_set->data[i];
     514      for (int j = 0; j < values->n; j++) {
     515        psFree(values->data[j]);
     516      }
     517      psFree(values_set->data[i]);
     518    }
     519    psFree(values_set);
     520    psFree(poly_set);
     521    psFree(logL);
     522
    506523    return true;
    507524}
Note: See TracChangeset for help on using the changeset viewer.