Changeset 21441 for trunk/magic/remove/src/streaksremove.c
- Timestamp:
- Feb 10, 2009, 11:46:34 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/magic/remove/src/streaksremove.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksremove.c
r21156 r21441 1 1 #include "streaksremove.h" 2 3 #include "nebclient.h" 2 4 3 5 static pmConfig *parseArguments(int argc, char **argv); … … 162 164 } 163 165 psArrayElementsFree (pixels); 166 psFree(pixels); 164 167 } 165 168 166 169 if (sfiles->stage == IPP_STAGE_CHIP) { 167 // if (CHIP_LEVEL_INPUT(sfiles->stage)) {168 170 updateAstrometry(sfiles); 169 171 } … … 174 176 printf("time to process component %d: %f\n", sfiles->extnum, psTimerClear("PROCESS_COMPONENT")); 175 177 } while (streakFilesNextExtension(sfiles)); 178 179 psFree(streaks); 176 180 177 181 printf("pixels: %ld streak pixels: %ld %4.2f%%\n", totalPixels, totalStreakPixels, 100. * totalStreakPixels / totalPixels); … … 191 195 } 192 196 193 #ifdef NOTYET194 197 if (psMetadataLookupBool(&status, config->arguments, "REPLACE")) { 195 198 // swap the instances for the input and output … … 221 224 } 222 225 } 223 #endif // REPLACE, REMOVE 226 224 227 printf("time to run streaksremove: %f\n", psTimerClear("STREAKSREMOVE")); 225 228 226 // nebServerFree(ourNebServer);229 psFree(sfiles); 227 230 psFree(config); 228 231 pmConceptsDone(); 232 pmModelClassCleanup(); 233 streaksNebulousCleanup(); 229 234 pmConfigDone(); 230 235 psLibFinalize(); 231 236 232 // PAU233 237 fprintf(stderr, "Found %d leaks at %s\n", psMemCheckLeaks (0, NULL, NULL, false), "streaksremove"); 234 235 238 236 239 return 0; … … 417 420 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "OUTPUT", 0, "directory for temporary files", 418 421 dir); 422 psFree(dir); 419 423 psArgumentRemove(argnum, &argc, argv); 420 424 } else { … … 428 432 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "RECOVERY", 0, "directory for recovery files", 429 433 dir); 434 psFree(dir); 430 435 psArgumentRemove(argnum, &argc, argv); 431 436 } else if ((stage == IPP_STAGE_RAW) && gotReplace) {
Note:
See TracChangeset
for help on using the changeset viewer.
