aa00d67 selinux: Disconnect before closing the handle

Authored and Committed by jhrozek 8 years ago
    selinux: Disconnect before closing the handle
    
    libsemanage documentation says:
    ~~~~
    be sure that a semanage_disconnect() was previously called if the handle
    was connected.
    ~~~~
    
    Otherwise we get a memory leak.
    
    Reviewed-by: Michal Židek <mzidek@redhat.com>
    
        
file modified
+10 -3