commit | e303de242cab7cda5e8c43ea3705fd927e87f46f | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <[email protected]> | Sat Jun 09 21:30:30 2018 +0200 |
committer | Stephen Smalley <[email protected]> | Fri Jun 15 09:02:42 2018 -0400 |
tree | 70373e830efc0ab9c0ae23666aacb13d18087e1a | |
parent | 49a49639118e9ea4aed644058f42d48cf65a9402 [diff] |
libsepol/tests: fix use of unitialized variable When write_binary_policy() fails to open the binary policy, it calls sepol_handle_destroy(f.handle) but structure f has not been initialized at this point. Use variable handle instead. This issue has been found using clang's static analyzer. Signed-off-by: Nicolas Iooss <[email protected]>