Changeset 16200 for trunk/ippTools/src
- Timestamp:
- Jan 23, 2008, 11:28:15 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/regtool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/regtool.c
r16170 r16200 628 628 tess_id = tess_id ? tess_id : newExp->tess_id; 629 629 end_stage = end_stage ? end_stage : newExp->end_stage; 630 631 psFree(newExp); 630 // don't free newExp until just before we return, or these refs will break 632 631 633 632 if (!rawExpInsert(config->dbh, … … 694 693 } 695 694 psError(PS_ERR_UNKNOWN, false, "database error"); 695 psFree(newExp); 696 696 return false; 697 697 } … … 704 704 } 705 705 psError(PS_ERR_UNKNOWN, false, "failed to change newExp.state for exp_id: %s", exp_id); 706 psFree(newExp); 706 707 return false; 707 708 } 708 709 709 710 // should we stop here and proceed on to the chip stage? 710 if (psStrcasestr(end_stage, "reg")) { 711 // NULL for end_stage means go as far as possible 712 if (end_stage && psStrcasestr(end_stage, "reg")) { 711 713 // then we are done here 712 714 if (!psDBCommit(config->dbh)) { … … 715 717 } 716 718 719 psFree(newExp); 717 720 return true; 718 721 } … … 737 740 } 738 741 psError(PS_ERR_UNKNOWN, false, "failed to queue chipPendingExp"); 742 psFree(newExp); 739 743 return false; 740 744 } … … 742 746 if (!psDBCommit(config->dbh)) { 743 747 psError(PS_ERR_UNKNOWN, false, "database error"); 744 return false; 745 } 746 748 psFree(newExp); 749 return false; 750 } 751 752 psFree(newExp); 747 753 return true; 748 754 }
Note:
See TracChangeset
for help on using the changeset viewer.
