IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13495


Ignore:
Timestamp:
May 23, 2007, 4:13:17 PM (19 years ago)
Author:
Paul Price
Message:

Plugging memory leaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmStack.c

    r13492 r13495  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2007-05-24 01:27:35 $
     10 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2007-05-24 02:13:17 $
    1212 *
    1313 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    315315    }
    316316
     317    psFree(stats);
    317318    psFree(values);
    318319    psFree(valuesMask);
     
    334335    psArray *map = psArrayAlloc(numRows); // The pixel map
    335336    for (int y = 0; y < numRows; y++) {
    336         psArray *colMap = psArrayAlloc(numCols); // The pixel map columns
    337         for (int x = 0; x < numCols; x++) {
    338             colMap->data[x] = NULL;
    339         }
    340337        map->data[y] = psArrayAlloc(numCols);
    341338    }
     
    385382    data->detector = NULL;
    386383
    387     data->sky = sky;
     384    data->sky = psMemIncrRefCounter(sky);
    388385    data->pixels = NULL;
    389386    data->seeing = seeing;
     
    502499    }
    503500
     501    psFree(weights);
    504502    psFree(buffer);
    505503
     
    574572        }
    575573    }
     574    psFree(reject);
     575    psFree(seeing);
     576    psFree(pixels);
     577    psFree(pixelMap);
    576578
    577579    if (psTraceGetLevel("psModules.imcombine") >= 5) {
Note: See TracChangeset for help on using the changeset viewer.