IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18034


Ignore:
Timestamp:
Jun 9, 2008, 1:53:34 PM (18 years ago)
Author:
eugene
Message:

plug two leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r17991 r18034  
    11501150            return NULL;
    11511151        }
    1152         return psMemIncrRefCounter(format);
     1152        return psMemIncrRefCounter(format); // a second copy, since the first copy sits on config->format
    11531153    }
    11541154
     
    12161216    }
    12171217   
     1218    psFree (name); // winning format name (for metaCamera) returned by formatFromHeader
     1219
    12181220    psFree (baseName);
    12191221    if (formatName) {
     
    12251227        *camera = psMemIncrRefCounter(testCamera);
    12261228    }
    1227     return psMemIncrRefCounter(format);
     1229    return format; // we do NOT need to incr ref counter: this is the only copy
    12281230}
    12291231
Note: See TracChangeset for help on using the changeset viewer.