r22681: Fix standalone ldb build when parent directory name != ldb.
[kamenim/samba.git] / source4 / lib / ldb / common / ldb_dn.c
index 0649626d61a5639144d2fd24eda518316cb030fd..766f8a174c0ee10cd99b5d38abb4111d6ae87cc2 100644 (file)
@@ -34,9 +34,8 @@
  *  Author: Simo Sorce
  */
 
-#include "includes.h"
 #include <ctype.h>
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 #define LDB_DN_NULL_FAILED(x) if (!(x)) goto failed
 
@@ -1421,6 +1420,7 @@ int ldb_dn_set_component(struct ldb_dn *dn, int num, const char *name, const str
                dn->valid_case = false;
        }
        LDB_FREE(dn->casefold);
+       LDB_FREE(dn->linearized);
 
        return LDB_SUCCESS;
 }