IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6737


Ignore:
Timestamp:
Mar 30, 2006, 11:51:49 AM (20 years ago)
Author:
Paul Price
Message:

Squashing memory leak.

Location:
branches/rel10_ifa/psModules/src/astrom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/astrom/pmConcepts.c

    r6734 r6737  
    9292        // Trap the lists, which can't be copied in the ordinary way without a warning
    9393        if (blank->type == PS_DATA_LIST) {
    94             copy = psMetadataItemAlloc(blank->name, PS_DATA_LIST, blank->comment, blank->data.V);
     94            copy = psMemIncrRefCounter(blank->data.V);
    9595        } else {
    9696            copy = psMetadataItemCopy(blank);
     
    9999            psLogMsg(__func__, PS_LOG_WARN, "Unable to add blank version of concept %s\n", blank->name);
    100100        }
     101        psFree(copy);                   // Drop reference
    101102    }
    102103    psFree(specsIter);
  • branches/rel10_ifa/psModules/src/astrom/pmFPAConstruct.c

    r6734 r6737  
    119119        psFree(chip);                   // Drop reference
    120120        psFree(cellNamesIter);
     121        psFree(cellNames);
    121122    }
    122123    psFree(componentsIter);
Note: See TracChangeset for help on using the changeset viewer.