aboutsummaryrefslogtreecommitdiffstats
path: root/src/if_wg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_wg.c')
-rw-r--r--src/if_wg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/if_wg.c b/src/if_wg.c
index db93086..fffdf8d 100644
--- a/src/if_wg.c
+++ b/src/if_wg.c
@@ -3007,10 +3007,13 @@ wg_module_init(void)
ret = ENOTRECOVERABLE;
if (!wg_run_selftests())
- goto free_zone;
+ goto free_all;
return (0);
+free_all:
+ osd_jail_deregister(wg_osd_jail_slot);
+ cookie_deinit();
free_zone:
uma_zdestroy(wg_packet_zone);
free_none: