- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
magic/remove/src/streaksio.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/magic/remove/src/streaksio.c
r30404 r33415 632 632 633 633 if (!isImage(in)) { 634 psLogMsg("streaksremove", PS_LOG_INFO, "%s contains no image\n", in->name); 634 635 return; 635 636 } … … 752 753 return; 753 754 } 754 ps Array *table = psFitsReadTable(in->fits);755 psFitsTable *table = psFitsReadTableNew(in->fits); 755 756 if (!table) { 756 757 psError(PS_ERR_UNKNOWN, false, "failed to read table in extension %d from in->resolved name", extnum); … … 758 759 } 759 760 760 if (!psFitsWriteTable (out->fits, out->header, table, extname)) {761 if (!psFitsWriteTableNew(out->fits, out->header, table, extname)) { 761 762 psError(PS_ERR_UNKNOWN, false, "failed to copy table in extension %d", extnum); 762 763 streaksExit("", PS_EXIT_DATA_ERROR); 763 764 } 765 psFree(table); 764 766 } 765 767 … … 778 780 setupImageRefs(sFile *out, sFile *recoveryOut, sFile *in, int extnum, bool exciseAll) 779 781 { 782 if (!in->image) { 783 // Input file is likely corrupt. XXX: Shouldn't we have caught this earlier? 784 psError(PS_ERR_UNKNOWN, true, "image is null for extension %d of %s file is likely corrupt", extnum, in->name); 785 streaksExit("", PS_EXIT_UNKNOWN_ERROR); 786 } 780 787 if (!exciseAll) { 781 788 // set output image to be the input image … … 839 846 psFree(sfile->name); 840 847 psFree(sfile->resolved_name); 848 psFree(sfile->fits); 841 849 psFree(sfile); 842 850 } … … 915 923 sFileFree(sf->outWeight); 916 924 sFileFree(sf->recWeight); 925 } 926 if (sf->inSources) { 927 sFileFree(sf->inSources); 928 sFileFree(sf->outSources); 917 929 } 918 930 } … … 1301 1313 streaksExit("", PS_EXIT_UNKNOWN_ERROR); 1302 1314 } 1315 psFree(compress); 1303 1316 } else { 1304 1317 copyTable(out, in, extnum);
Note:
See TracChangeset
for help on using the changeset viewer.
