| 1 |
< |
/* |
| 1 |
> |
/* |
| 2 |
|
* Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. |
| 3 |
|
* |
| 4 |
|
* The University of Notre Dame grants you ("Licensee") a |
| 140 |
|
|
| 141 |
|
case ATOM_HEAD: |
| 142 |
|
if( the_namespc.type != MOLECULE_HEAD ){ |
| 143 |
< |
print_tree_error( the_node, |
| 143 |
> |
print_tree_error( the_node, |
| 144 |
|
"The atom block is not in a molecule namespace" ); |
| 145 |
|
} |
| 146 |
|
else{ |
| 396 |
|
|
| 397 |
|
case CONSTRAINT_STMT: |
| 398 |
|
sprintf( painCave.errMsg, |
| 399 |
< |
"Parse tree error: constraint node error => ( %lf )\n" |
| 400 |
< |
" -> %s\n", |
| 401 |
< |
err_node->the_data.cnstr.constraint_val, |
| 402 |
< |
err_msg ); |
| 399 |
> |
"Parse tree error: constraint node error => ( %lf )\n" |
| 400 |
> |
" -> %s\n", |
| 401 |
> |
err_node->the_data.cnstr.constraint_val, |
| 402 |
> |
err_msg ); |
| 403 |
|
break; |
| 404 |
|
|
| 405 |
|
case ASSIGNMENT_STMT: |
| 501 |
|
free( the_node->the_data.asmt.identifier ); |
| 502 |
|
break; |
| 503 |
|
|
| 504 |
+ |
case MEMBERS_STMT: |
| 505 |
+ |
|
| 506 |
+ |
if (the_node->the_data.mbrs.nMembers >0 ){ |
| 507 |
+ |
free(the_node->the_data.mbrs.memberList); |
| 508 |
+ |
} |
| 509 |
+ |
break; |
| 510 |
+ |
|
| 511 |
|
default: |
| 512 |
|
// nothing to do here, everyone else can be freed normally. |
| 513 |
|
break; |