IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2006, 8:52:03 PM (20 years ago)
Author:
eugene
Message:

extensive cleanup of memory handling : no more leaks!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotFindPeaks.c

    r6320 r6379  
    3939
    4040    // optional dump of all peak data
    41     char *output = psMetadataLookupPtr (&status, config, "PEAKS_OUTPUT_FILE");
     41    char *output = psMetadataLookupStr (&status, config, "PEAKS_OUTPUT_FILE");
    4242    if (status && (output != NULL) && (output[0])) {
    4343        pmPeaksWriteText (peaks, output);
    44         psFree (output);
    4544    }
    46      
    4745    psLogMsg ("psphot", 3, "%d peaks: %f sec\n", peaks->n, psTimerMark ("psphot"));
    4846
    49     char *breakPt = psMetadataLookupPtr (&status, config, "BREAK_POINT");
     47    char *breakPt = psMetadataLookupStr (&status, config, "BREAK_POINT");
    5048    if (!strcasecmp (breakPt, "PEAKS")) exit (0);
    5149
Note: See TracChangeset for help on using the changeset viewer.