IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42019


Ignore:
Timestamp:
Feb 7, 2022, 11:01:52 AM (4 years ago)
Author:
eugene
Message:

plug leaks in FITS I/O

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/psLib/src/fits/psFitsTableNew.c

    r41896 r42019  
    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.