IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 23, 2005, 9:13:06 AM (20 years ago)
Author:
Paul Price
Message:

Worked out some memory leaks and bugs for GPC1 test data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/scripts/src/phase2/pmFPAConstruct.c

    r5564 r5583  
    141141                    }
    142142                    // The cell
    143                     psArray *images = NULL;
    144                     psMetadata *header = NULL;
    145143                    psMetadata *cellData = getCellData(camera, cellType);
    146144                    pmCell *cell = pmCellAlloc(chip, cellData, extName); // The cell
     
    242240                const char *cellType = contentItem->data.V; // The type of cell
    243241                psTrace(__func__, 5, "Cell type is %s\n", cellType);
    244                 psArray *images = NULL;
    245                 psMetadata *header = NULL;
    246242                psMetadata *cellData = getCellData(camera, cellType);
    247243                pmCell *cell = pmCellAlloc(chip, cellData, extName); // The cell
    248244//              psFree(cellData);
    249245                cell->hdu = p_pmHDUAlloc(extName); // Prepare cell to receive FITS data
     246
     247                psFree(cell);
    250248            } // Iterating through contents
    251249            psFree(contentsIter);
     
    256254            return NULL;
    257255        }
     256        psFree(chipName);
     257        psFree(chip);
    258258
    259259    } else {
Note: See TracChangeset for help on using the changeset viewer.