* Free the net address hash lists that are hanging off the mount points. */
| 275 | * Free the net address hash lists that are hanging off the mount points. |
| 276 | */ |
| 277 | static void |
| 278 | vfs_free_addrlist(struct netexport *nep) |
| 279 | { |
| 280 | struct ucred *cred; |
| 281 | |
| 282 | if (nep->ne4 != NULL) |
| 283 | vfs_free_addrlist_af(&nep->ne4); |
| 284 | if (nep->ne6 != NULL) |
| 285 | vfs_free_addrlist_af(&nep->ne6); |
| 286 | |
| 287 | cred = nep->ne_defexported.netc_anon; |
| 288 | if (cred != NULL) |
| 289 | crfree(cred); |
| 290 | |
| 291 | } |
| 292 | |
| 293 | /* |
| 294 | * High level function to manipulate export options on a mount point |
no test coverage detected