]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgroups: fix potential nullderef 2936/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 14 Apr 2019 13:30:22 +0000 (15:30 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 14 Apr 2019 13:30:22 +0000 (15:30 +0200)
commitb53a08535a8a7f1c8745466ae572886b3b4f5477
treefbd4df29118048069cc50f0c803666a51cad7b84
parent9810d1916eacea64c838681d3045cac60e7f00c2
cgroups: fix potential nullderef

The child_path variable is initialized very late in the function so jumping to
the on_error label would cause a nullderef. With the cleanup macros we can
simplify this function to simply do direct returns and avoid that whole issue.

Closes #2935.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c