IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41911


Ignore:
Timestamp:
Nov 10, 2021, 3:49:48 PM (5 years ago)
Author:
eugene
Message:

plug leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-ps1-20211104/psLib/src/fits/psFitsTableNew.c

    r41896 r41911  
    175175static void freeColumn(psFitsTableColumn *column)
    176176{
    177     // add any element frees here
     177    if (!column) return;
     178    psFree (column->name);
     179    psFree (column->data.S8);
    178180    return;
    179181}
     
    195197    psFitsTableColumn *column = psFitsTableColumnAlloc (name, type);
    196198    psArrayAdd (tableColumns, 10, column);
     199    psFree (column);
    197200    return true;
    198201}
Note: See TracChangeset for help on using the changeset viewer.