Changeset 18681
- Timestamp:
- Jul 23, 2008, 1:16:12 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/magictool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/magictool.c
r18671 r18681 235 235 psString insert = pxDataGet("magictool_definebyquery_insert.sql"); // Insert query 236 236 237 // iterate over array of grouped warp_ids237 psArray *list = psArrayAllocEmpty(16); // List of runs, to print 238 238 for (long i = 0; i < psArrayLength(output); i++) { 239 239 psMetadata *row = output->data[i]; // Row of interest … … 251 251 psFree(insert); 252 252 psFree(output); 253 psFree(list); 253 254 if (!psDBRollback(config->dbh)) { 254 255 psError(PS_ERR_UNKNOWN, false, "database error"); … … 260 261 run->magic_id = magic_id; 261 262 262 if (!magicRunPrintObject(stdout, run, !simple)) { 263 psError(PS_ERR_UNKNOWN, false, "failed to print object"); 264 psFree(run); 265 psFree(insert); 266 psFree(output); 267 if (!psDBRollback(config->dbh)) { 268 psError(PS_ERR_UNKNOWN, false, "database error"); 269 } 270 return false; 271 } 263 psArrayAdd(list, list->n, run); 272 264 psFree(run); 273 265 … … 284 276 psFree(insert); 285 277 psFree(output); 278 psFree(list); 286 279 if (!psDBRollback(config->dbh)) { 287 280 psError(PS_ERR_UNKNOWN, false, "database error"); … … 297 290 } 298 291 psFree(output); 292 293 if (!magicRunPrintObjects(stdout, list, !simple)) { 294 psError(PS_ERR_UNKNOWN, false, "failed to print object"); 295 psFree(list); 296 return false; 297 } 299 298 300 299 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
