| 458 | |
| 459 | |
| 460 | static void freetarget( void * xt, void * data ) |
| 461 | { |
| 462 | TARGET * const t = (TARGET *)xt; |
| 463 | if ( t->name ) object_free ( t->name ); |
| 464 | if ( t->boundname ) object_free ( t->boundname ); |
| 465 | if ( t->settings ) freesettings( t->settings ); |
| 466 | if ( t->depends ) freetargets ( t->depends ); |
| 467 | if ( t->dependants ) freetargets ( t->dependants ); |
| 468 | if ( t->parents ) freetargets ( t->parents ); |
| 469 | if ( t->actions ) freeactions ( t->actions ); |
| 470 | if ( t->includes ) |
| 471 | { |
| 472 | freetarget( t->includes, (void *)0 ); |
| 473 | BJAM_FREE( t->includes ); |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | |
| 478 | /* |
nothing calls this directly
no test coverage detected