libsepol: Fix RESOURCE_LEAK defects reported by coverity scan

These were reported by Petr Lautrbach (plautrba@redhat.com) and this
patch was based on his patch with only a few changes.

Signed-off-by: James Carter <jwcart2@tycho.nsa.gov>
6 files changed