9f3536c 548115 - memory leak in schema reload

Authored and Committed by nhosoi 14 years ago
    548115 - memory leak in schema reload
    
    https://bugzilla.redhat.com/show_bug.cgi?id=548115
    
    Description:
    dse.c: 1) dse_add_entry_pb is supposed to free the given
    the schema entry e.  Although the function never consumes the
    entry, it was only freeing it when the entry was added. (If
    it was merged or rejected, it was not freed.)
    
    schema.c: 1) when allocating a work buffer with sizedbuffer_allocate,
    the space for the NULL termination was not counted.
    2) DSE returned from slapi_validate_schema_files must have been
    freed regardless of the return value.
    
        
file modified
+8 -5
file modified
+5 -3