IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 31, 2011, 1:30:49 PM (15 years ago)
Author:
bills
Message:

use psFitsTable structure when copying extra extensions.
Fix previously existing memory leak of extra extension header in sources file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/streaksio.c

    r32231 r32252  
    752752        return;
    753753    }
    754     psArray *table = psFitsReadTable(in->fits);
     754    psFitsTable *table = psFitsReadTableNew(in->fits);
    755755    if (!table) {
    756756        psError(PS_ERR_UNKNOWN, false, "failed to read table in extension %d from in->resolved name", extnum);
     
    758758    }
    759759
    760     if (!psFitsWriteTable(out->fits, out->header, table, extname)) {
     760    if (!psFitsWriteTableNew(out->fits, out->header, table, extname)) {
    761761        psError(PS_ERR_UNKNOWN, false, "failed to copy table in extension %d", extnum);
    762762        streaksExit("", PS_EXIT_DATA_ERROR);
    763763    }
     764    psFree(table);
    764765}
    765766
Note: See TracChangeset for help on using the changeset viewer.