IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8018


Ignore:
Timestamp:
Jul 31, 2006, 2:52:54 PM (20 years ago)
Author:
jhoblitt
Message:

fix memory leaks

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxframes.c

    r8017 r8018  
    161161    }
    162162
    163     return rawScienceFrameAlloc(rawScienceExp, rawImages);
     163    rawScienceFrame *rawScienceFrame = rawScienceFrameAlloc(rawScienceExp, rawImages);
     164    psFree(rawScienceExp);
     165    psFree(rawImages);
     166
     167    return rawScienceFrame;
    164168}
    165169
     
    220224    }
    221225
    222     return rawDetrendFrameAlloc(rawDetrendExp, rawImages);
     226    rawDetrendFrame *rawDetrendFrame = rawDetrendFrameAlloc(rawDetrendExp, rawImages);
     227    psFree(rawDetrendExp);
     228    psFree(rawImages);
     229
     230    return rawDetrendFrame;
    223231}
    224232
  • trunk/ippTools/src/regtool.c

    r8016 r8018  
    9595                if (!frame) {
    9696                    psError(PS_ERR_UNKNOWN, false, "failed to convert new frame into a detrend frame");
     97                    psFree(new);
    9798                    return false;
    9899                }
     
    109110                if (!frame) {
    110111                    psError(PS_ERR_UNKNOWN, false, "failed to convert new frame into a science frame");
     112                    psFree(new);
    111113                    return false;
    112114                }
Note: See TracChangeset for help on using the changeset viewer.