selinux: clean up error path in policydb_init()
authorOndrej Mosnacek <omosnace@redhat.com>
Tue, 3 Mar 2020 11:29:10 +0000 (12:29 +0100)
committerPaul Moore <paul@paul-moore.com>
Thu, 5 Mar 2020 19:49:15 +0000 (14:49 -0500)
commit34a2dab488bcaf2ac2198d7b305794280d73207b
tree94fa223ba4cb00a9dc81ac874c4580735a802e6b
parente3e0b582c321aefd72db0e7083a0adfe285e96b5
selinux: clean up error path in policydb_init()

Commit e0ac568de1fa ("selinux: reduce the use of hard-coded hash sizes")
moved symtab initialization out of policydb_init(), but left the cleanup
of symtabs from the error path. This patch fixes the oversight.

Suggested-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/policydb.c