IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2022, 2:43:25 PM (4 years ago)
Author:
eugene
Message:

plug a leak in psFitsTableNew.c; fix implementation of FITS_SCALE_ASINH_MANUAL; add option to reweight the errors in LMM; compile-time option to activate a hard-coded random seed (only needed for psLib testing)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsTableNew.c

    r41896 r42089  
    9797freeTable(psFitsTable *table)
    9898{
     99    if (!table) return;
    99100    for (int col = 0; col < table->numCols; col++) {
    100101        psFitsTableColumn *column = &table->columns[col];
     
    176177{
    177178    // add any element frees here
     179    if (!column) return;
     180
     181    psFree (column->name);
    178182    return;
    179183}
     
    195199    psFitsTableColumn *column = psFitsTableColumnAlloc (name, type);
    196200    psArrayAdd (tableColumns, 10, column);
     201    psFree (column);
    197202    return true;
    198203}
Note: See TracChangeset for help on using the changeset viewer.