Browse Source

uninitialize matches if targets fail to register

pull/1/head
Niels Werensteijn 8 years ago
parent
commit
927257312b
  1. 8
      src/ts3init_module.c

8
src/ts3init_module.c

@ -36,15 +36,19 @@ static int __init ts3init_init(void) @@ -36,15 +36,19 @@ static int __init ts3init_init(void)
int error;
error = ts3init_match_init();
if (error)
return error;
return error;
error = ts3init_target_init();
if (error)
ts3init_match_exit();
return error;
}
static void __exit ts3init_exit(void)
{
ts3init_match_exit();
ts3init_target_exit();
ts3init_target_exit();
}
module_init(ts3init_init);

Loading…
Cancel
Save