libsepol: free ibendport device names
When reading policy, ibendport device names are allocated in ocontext_read_selinux() but they are not freed when calling sepol_policydb_free(); Fix this by freeing them in ocontext_selinux_free(). Signed-off-by: Jan Zarsky <jzarsky@redhat.com>
This commit is contained in:
parent
80d6927b69
commit
4da8fcc21a
1 changed files with 2 additions and 0 deletions
|
@ -1420,6 +1420,8 @@ void ocontext_selinux_free(ocontext_t **ocontexts)
|
|||
if (i == OCON_ISID || i == OCON_FS || i == OCON_NETIF
|
||||
|| i == OCON_FSUSE)
|
||||
free(ctmp->u.name);
|
||||
else if (i == OCON_IBENDPORT)
|
||||
free(ctmp->u.ibendport.dev_name);
|
||||
free(ctmp);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue