diff options
author | Ondrej Mosnacek <omosnace@redhat.com> | 2019-07-25 13:52:43 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2019-07-31 23:51:23 +0300 |
commit | 45385237f65aeee73641f1ef737d7273905a233f (patch) | |
tree | 65811d436422e22f71de033f255bf732fb19024b /crypto/cts.c | |
parent | acbc372e6109c803cbee4733769d02008381740f (diff) | |
download | linux-45385237f65aeee73641f1ef737d7273905a233f.tar.xz |
selinux: fix memory leak in policydb_init()
Since roles_init() adds some entries to the role hash table, we need to
destroy also its keys/values on error, otherwise we get a memory leak in
the error path.
Cc: <stable@vger.kernel.org>
Reported-by: syzbot+fee3a14d4cdf92646287@syzkaller.appspotmail.com
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'crypto/cts.c')
0 files changed, 0 insertions, 0 deletions