IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11332


Ignore:
Timestamp:
Jan 26, 2007, 2:34:25 PM (19 years ago)
Author:
magnier
Message:

fixed leaks from file format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r11304 r11332  
    337337        return NULL;
    338338    }
    339     file->format = format;
     339    psFree (format);
     340    file->format = psMemIncrRefCounter(format);
    340341
    341342    // adjust the rules to identify these files in the file->names data
     
    480481    // set derived values
    481482    file->fileLevel = input->fileLevel;
     483    psFree (file->format);
    482484    file->format = psMemIncrRefCounter(input->format);
    483485
     
    618620        return NULL;
    619621    }
     622    psFree (file->format);
    620623    file->format = format;
    621624
     
    919922    file->xBin = xBin;
    920923    file->yBin = yBin;
     924    psFree (file->format);
    921925    file->format = psMemIncrRefCounter(format);
    922926
     
    958962        // The input camera has already been mosaicked to this level
    959963        pmFPAfile *file = pmFPAfileDefineOutput(config, NULL, filename);
     964        psFree (file->camera);
     965        psFree (file->format);
     966        psFree (file->fpa);
    960967        file->camera = psMemIncrRefCounter(config->camera);
    961968        file->format = psMemIncrRefCounter(config->format);
     
    10081015    file->src = src; // inherit output elements from this source pmFPA
    10091016    file->mosaicLevel = PM_FPA_LEVEL_CHIP; // don't do any I/O on this at a lower level
     1017    psFree (file->format);
    10101018    file->format = psMemIncrRefCounter(format);
    10111019
     
    10261034        // The input camera has already been mosaicked to this level
    10271035        pmFPAfile *file = pmFPAfileDefineOutput(config, NULL, filename);
     1036        psFree (file->camera);
     1037        psFree (file->format);
     1038        psFree (file->fpa);
    10281039        file->camera = psMemIncrRefCounter(config->camera);
    10291040        file->format = psMemIncrRefCounter(config->format);
     
    10851096    file->src = src; // inherit output elements from this source pmFPA
    10861097    file->mosaicLevel = PM_FPA_LEVEL_FPA; // don't do any I/O on this at a lower level
     1098    psFree (file->format);
    10871099    file->format = psMemIncrRefCounter(format);
    10881100
Note: See TracChangeset for help on using the changeset viewer.