s4:dsdb: Fix not freed temp memory context
[obnox/samba/samba-obnox.git] / source4 / dsdb / common / dsdb_dn.c
index ab427762261e800dd234ec9468b602445b9be47d..ccfbe365089dcac2e58081c2e009d279f7ad5023 100644 (file)
@@ -211,6 +211,7 @@ struct dsdb_dn *dsdb_dn_parse(TALLOC_CTX *mem_ctx, struct ldb_context *ldb,
                
        dsdb_dn = dsdb_dn_construct(mem_ctx, dn, bval, dn_oid);
                
+       talloc_free(tmp_ctx);
        return dsdb_dn;
 
 failed: