IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13676


Ignore:
Timestamp:
Jun 5, 2007, 6:54:52 PM (19 years ago)
Author:
eugene
Message:

fixed double free and leak

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageLoop.c

    r13675 r13676  
    123123                    return false;
    124124                }
     125
    125126                psMetadata *newStats = ppStats(output->fpa, view,
    126127                                               options->satMask | options->badMask | options->maskValue,
  • trunk/ppStats/src/ppStatsLoop.c

    r13675 r13676  
    6363                      comment, source);
    6464    }
    65     psFree(source);                     // Drop reference
    6665    return;
    6766}
     
    250249    // Add the cell results to the chip
    251250    addToHierarchy(cellResults, chipResults, cellName, "Results for cell");
     251    psFree (cellResults);
    252252    if (fits) {
    253253        pmCellFreeData(cell);
     
    324324        }
    325325        addToHierarchy(chipResults, fpaResults, chipName, "Results for chip");
     326        psFree (chipResults);
    326327        if (fits) {
    327328            pmChipFreeData(chip);
    328329        }
    329         psFree(chipResults);
    330330        return PS_EXIT_SUCCESS;
    331331    }
     
    346346
    347347    addToHierarchy(chipResults, fpaResults, chipName, "Results for chip");
     348    psFree (chipResults);
    348349    if (fits) {
    349350        pmChipFreeData(chip);
Note: See TracChangeset for help on using the changeset viewer.