IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Squashing memory leak.

File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.