jail: fix several issues discovered by Coverity
authorDaniel Golle <daniel@makrotopia.org>
Fri, 13 Aug 2021 18:30:34 +0000 (19:30 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 14 Aug 2021 17:58:01 +0000 (18:58 +0100)
commit459b3e84ef820137b106106155c1c26ea7414e6d
tree490cb9b0fc21944620ec1c5680de21c3910ffef1
parent48638ad4f875719a09bd99dabbd6359ef9ffa404
jail: fix several issues discovered by Coverity

Coverity CID: 1430874 Untrusted pointer read
Coverity CID: 1490028 Resource leak
Coverity CID: 1490029 Resource leak
Coverity CID: 1490057 Uninitialized scalar variable
Coverity CID: 1490069 Resource leak
Coverity CID: 1490074 Resource leak

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/cgroups.c
jail/fs.c
jail/jail.c