Frees the entire disposition structure (params + itself) */
| 337 | |
| 338 | /* Frees the entire disposition structure (params + itself) */ |
| 339 | void free_disposition( struct disposition **disp) |
| 340 | { |
| 341 | struct disposition_param *param; |
| 342 | |
| 343 | /* free the params */ |
| 344 | while((*disp)->params) { |
| 345 | param = (*disp)->params->next; |
| 346 | pkg_free( (*disp)->params); |
| 347 | (*disp)->params = param; |
| 348 | } |
| 349 | pkg_free( *disp ); |
| 350 | *disp = 0; |
| 351 | } |
| 352 | |
| 353 | |
| 354 |
no outgoing calls
no test coverage detected