empties/frees the content of a dset without free'ing the dset itself */
| 110 | |
| 111 | /* empties/frees the content of a dset without free'ing the dset itself */ |
| 112 | static inline void _empty_branches(struct dset_ctx *dsct) |
| 113 | { |
| 114 | int i; |
| 115 | |
| 116 | for( i = 0 ; i < dsct->nr_branches ; i++ ) |
| 117 | destroy_avp_list( &dsct->branches[i].branch.attrs ); |
| 118 | pkg_free( dsct->branches ); |
| 119 | dsct->branches = NULL; |
| 120 | } |
| 121 | |
| 122 | /*! Frees a destination set which used to be stored in the global context */ |
| 123 | static void dset_destroy(void *dsct) |
no test coverage detected