Changeset 6148 for trunk/ppImage/src/ppImageLoop.c
- Timestamp:
- Jan 21, 2006, 5:29:19 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageLoop.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageLoop.c
r6125 r6148 1 1 # include "ppImage.h" 2 3 #define MEM_LEAKS 1 2 4 3 5 psMemId ppMemPrint(const psMemBlock *ptr) … … 63 65 for (int i = 0; i < chips->n; i++) { 64 66 65 if (i > 6) {66 continue;67 }68 69 67 if (processChip >= 0 && i != processChip) { 70 68 continue; … … 84 82 pmChip *maskChip = data->mask->fpa->chips->data[i]; 85 83 pmChip *flatChip = data->flat->fpa->chips->data[i]; 84 85 ppMemPrint((psMemBlock*)inputChip-1); 86 86 87 87 psArray *cells = inputChip->cells; … … 107 107 108 108 // Need to free detrend cells here so we have enough memory to do other stuff 109 #ifndef MEM_LEAKS 109 110 psFree(detrend.bias); 110 111 psFree(detrend.dark); 111 112 psFree(detrend.mask); 112 113 psFree(detrend.flat); 114 #endif 113 115 } 114 116 … … 118 120 // XXX EAM: Photometry goes here! 119 121 120 // A kludge to get the write to behave wrt the concepts 122 // A kludge to get the write to behave wrt the concepts --- we've changed the camera format, so 123 // the concepts don't know what on earth to do. 121 124 const psMetadata *camera = data->input->fpa->camera; 122 125 data->input->fpa->camera = NULL; … … 125 128 126 129 // Now I can blow away the mosaic so I can then read more. 127 psFree(chips->data[i]); 130 #ifndef MEM_LEAKS 131 pmChipFreeCells(inputChip); 128 132 ppMemPrint((psMemBlock*)chips->data[i]-1); 133 #endif 129 134 } 130 135 … … 152 157 153 158 // Free the detrend FPA and chips 159 #ifndef MEM_LEAKS 154 160 psFree(data->bias); 155 161 psFree(data->dark); 156 162 psFree(data->mask); 157 163 psFree(data->flat); 164 #endif 158 165 159 166 psFitsClose(data->output);
Note:
See TracChangeset
for help on using the changeset viewer.
