diff options
Diffstat (limited to 'security/selinux/ss/policydb.c')
-rw-r--r-- | security/selinux/ss/policydb.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/security/selinux/ss/policydb.c b/security/selinux/ss/policydb.c index f05f97a2bc3a..5ecbad7d8b9f 100644 --- a/security/selinux/ss/policydb.c +++ b/security/selinux/ss/policydb.c | |||
@@ -177,18 +177,15 @@ static int policydb_init(struct policydb *p) | |||
177 | 177 | ||
178 | rc = roles_init(p); | 178 | rc = roles_init(p); |
179 | if (rc) | 179 | if (rc) |
180 | goto out_free_avtab; | 180 | goto out_free_symtab; |
181 | 181 | ||
182 | rc = cond_policydb_init(p); | 182 | rc = cond_policydb_init(p); |
183 | if (rc) | 183 | if (rc) |
184 | goto out_free_avtab; | 184 | goto out_free_symtab; |
185 | 185 | ||
186 | out: | 186 | out: |
187 | return rc; | 187 | return rc; |
188 | 188 | ||
189 | out_free_avtab: | ||
190 | avtab_destroy(&p->te_avtab); | ||
191 | |||
192 | out_free_symtab: | 189 | out_free_symtab: |
193 | for (i = 0; i < SYM_NUM; i++) | 190 | for (i = 0; i < SYM_NUM; i++) |
194 | hashtab_destroy(p->symtab[i].table); | 191 | hashtab_destroy(p->symtab[i].table); |