Skip to content
Snippets Groups Projects
Commit 931ddfed authored by Filip Matusiak's avatar Filip Matusiak
Browse files

Free and unload steer modules upon exit

parent 77e889bc
Branches
Tags
1 merge request!181Fix memory leaks found using valgrind in steering
Pipeline #77743 passed
......@@ -1943,6 +1943,7 @@ void run_controller(void)
uloop_run();
out_exit:
cntlr_unload_steer_modules(c);
map_unsubscribe(ctx, c->subscriber);
cntlr_clean_nodelist(c);
ubus_unregister_event_handler(ctx, &c->evh);
......
......@@ -78,6 +78,7 @@ static int cntlr_unload_steer_module(struct steer_control *sc)
ret = plugin_unload(sc->handle);
list_del(&sc->list);
free(sc);
return !ret ? 0 : -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment