Commit c7f2d339 authored by Simon Ruderich's avatar Simon Ruderich
Browse files

slsm: tree: fix memory leak on error path

parent 5300a822
......@@ -536,6 +536,7 @@ int slsm_new_tree(const char *buf, size_t buflen) {
int err = slsm_insert_rule(t, current_rule, &remaining);
if (err) {
slsm_free_subtree(t);
kfree(t);
return err;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment