Changeset 15243 for trunk/psModules/src/objects/pmSourceIO_PS1_DEV_1.c
- Timestamp:
- Oct 8, 2007, 8:52:49 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourceIO_PS1_DEV_1.c
r15080 r15243 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2007- 09-28 21:04:55$5 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-10-08 18:52:49 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 164 164 modelType = pmModelClassGetType (PSF_NAME); 165 165 } 166 assert (modelType > -1); 166 167 167 168 psArray *table = psFitsReadTable (fits); 168 169 // validate a single row of the table (must match SMP) 170 171 // XXX test return values 172 173 // XXX we have a memory problem, which is illustrated here: if I allocate the sources array 174 // (line 1) before freeing the table, the data is not really freed (but not a leak?) if I 175 // allocate the sources array *after* freeing the table, the data is actually freed 176 // psArray *fooSources = psArrayAllocEmpty (10000); 177 // psFree (table); 178 // return (fooSources); 169 179 170 180 psArray *sources = psArrayAlloc (table->n);
Note:
See TracChangeset
for help on using the changeset viewer.
