Commit a439bafe authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

cgrou-props: typo fix

280                             xfree(p);
>>> >>>     CID 161428:  Memory - illegal accesses  (USE_AFTER_FREE)
>>> >>>     Passing freed pointer "p" as an argument to "print_on_level".
281                             pr_err("Unknown strategy \"%s\" in controller's %s stream\n",
282                                    p, cgp_entry->cgp.name);
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 04deb5f3
......@@ -277,9 +277,9 @@ static int cgp_parse_stream(char *stream, size_t len)
} else if (!strcmp(p, "replace")) {
strategy = CGP_REPLACE;
} else {
xfree(p);
pr_err("Unknown strategy \"%s\" in controller's %s stream\n",
p, cgp_entry->cgp.name);
xfree(p);
goto err_parse;
}
......
Markdown is supported
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