| 79 | **************************************************************************/ |
| 80 | |
| 81 | void free_backtrace_list(agent* thisAgent, backtrace_str* prod) |
| 82 | { |
| 83 | |
| 84 | backtrace_str* next_prod; |
| 85 | |
| 86 | while (prod != NULL) |
| 87 | { |
| 88 | next_prod = prod->next_backtrace; |
| 89 | deallocate_condition_list(thisAgent, prod->trace_cond); |
| 90 | deallocate_condition_list(thisAgent, prod->grounds); |
| 91 | deallocate_condition_list(thisAgent, prod->potentials); |
| 92 | deallocate_condition_list(thisAgent, prod->locals); |
| 93 | deallocate_condition_list(thisAgent, prod->negated); |
| 94 | free(prod); |
| 95 | prod = next_prod; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | /*************************************************************************** |
| 100 | * Function : reset_backtrace_list |
no test coverage detected