diff options
| author | Ondrej Mosnacek <[email protected]> | 2019-07-25 10:52:43 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2019-07-31 20:51:23 +0000 |
| commit | 45385237f65aeee73641f1ef737d7273905a233f (patch) | |
| tree | 65811d436422e22f71de033f255bf732fb19024b /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | selinux: check sidtab limit before adding a new entry (diff) | |
| download | kernel-45385237f65aeee73641f1ef737d7273905a233f.tar.gz kernel-45385237f65aeee73641f1ef737d7273905a233f.zip | |
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: <[email protected]>
Reported-by: [email protected]
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Ondrej Mosnacek <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
