IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12095


Ignore:
Timestamp:
Feb 27, 2007, 2:16:37 PM (19 years ago)
Author:
jhoblitt
Message:

plug a memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxdata.c.template

    r12091 r12095  
    5151        // if we do, slurp the file
    5252        psString text = psSlurpFilename(filepath);
    53         psFree(filepath);
    5453        if (!text) {
    5554            psError(PS_ERR_IO, false, "failed to slurp %s", filepath);
     55            psFree(filepath);
    5656            return NULL;
    5757        }
     58        psFree(filepath);
    5859
    5960        return text;
    6061    }
     62    psFree(filepath);
    6163
    6264    // look under our share path
     
    6769        // if we do, slurp the file
    6870        psString text = psSlurpFilename(filepath);
    69         psFree(filepath);
    7071        if (!text) {
    7172            psError(PS_ERR_IO, false, "failed to slurp %s", filepath);
     73            psFree(filepath);
    7274            return NULL;
    7375        }
     76        psFree(filepath);
    7477
    7578        return text;
    7679    }
     80    psFree(filepath);
    7781
    7882    // couldn't find a matching filename
Note: See TracChangeset for help on using the changeset viewer.