IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13675 for trunk/ppStats


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

fixing double frees, leaks

Location:
trunk/ppStats/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStats/src/ppStats.c

    r13658 r13675  
    99#include "ppStats.h"
    1010
    11 psMetadata *ppStats(psMetadata *out,    // Output metadata
    12                     pmFPA *fpa,         // FPA for which to get statistics
     11psMetadata *ppStats(pmFPA *fpa,         // FPA for which to get statistics
    1312                    pmFPAview *view,    // View for analysis
    1413                    psMaskType maskVal, // Value to mask
     
    4645    // Go through the FPA and do the hard work
    4746    psExit status;                      // Status of statistics loop
    48     psMetadata *result = ppStatsLoop(&status, out, data, config);
     47    psMetadata *result = ppStatsLoop(&status, data, config);
    4948    if (status != PS_EXIT_SUCCESS) {
    5049        psError (PS_ERR_UNKNOWN, false, "Not able to measure FPA statistics.\n");
  • trunk/ppStats/src/ppStats.h

    r13658 r13675  
    1212
    1313// Perform the ppStats steps
    14 psMetadata *ppStats(psMetadata *out,    // Output metadata
    15                     pmFPA *fpa,         // FPA for which to get statistics
     14psMetadata *ppStats(pmFPA *fpa,         // FPA for which to get statistics
    1615                    pmFPAview *view,    // View for analysis
    1716                    psMaskType maskVal, // Value to mask
  • trunk/ppStats/src/ppStatsLoop.c

    r13657 r13675  
    353353
    354354psMetadata *ppStatsLoop(psExit *result,
    355                         psMetadata *fpaResults, // Metadata to hold the FPA results
    356355                        ppStatsData *data, // The data
    357356                        const pmConfig *config // Configuration
     
    369368
    370369    // allocate a new one if needed
    371     psMetadata *newResults = fpaResults;
    372     if (!newResults) {
    373         newResults = psMetadataAlloc();
    374     }
     370    psMetadata *newResults = psMetadataAlloc();
    375371
    376372    // Iterate through the FPA
  • trunk/ppStats/src/ppStatsLoop.h

    r13640 r13675  
    77// Loop over the input image and do all the hard work
    88psMetadata *ppStatsLoop(psExit *result,
    9                         psMetadata *fpaResults, // Metadata to hold the FPA results
    109                        ppStatsData *data, // The data
    1110                        const pmConfig *config // Configuration
  • trunk/ppStats/src/ppStatsStandAlone.c

    r13658 r13675  
    5858
    5959    // Go through the FPA and do the hard work
    60     psMetadata *results = ppStatsLoop(&status, NULL, data, config);
     60    psMetadata *results = ppStatsLoop(&status, data, config);
    6161    if (status != PS_EXIT_SUCCESS) {
    6262        psErrorStackPrint(stderr, "Error in stats loop.\n");
Note: See TracChangeset for help on using the changeset viewer.