s4-ldb: Implement ldb_msg_difference() function to accept a memory context from client
authorKamen Mazdrashki <kamenim@samba.org>
Fri, 16 Jul 2010 11:23:24 +0000 (14:23 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Fri, 16 Jul 2010 11:23:24 +0000 (14:23 +0300)
commit1d6e6c6444bbe785be4f25f5fbe25527dce7c627
tree8390d874a5fda48f596a28552e5cb3e72558782d
parenta6a39245d9571de3e4031a0fd97e692e3db91c5b
s4-ldb: Implement ldb_msg_difference() function to accept a memory context from client

Old implementation from ldb_msg_diff() was moved into
this this function but with changed interface
so that a memory context may be passed.

ldb_msg_diff() function is now based on ldb_msg_difference(),
which fixes a hidden leak - internal ldb_msg object
(returned from ldb_msg_canonicalize) wasn't freed
and stays attached to ldb_context for the connection lifetime.
source4/lib/ldb/common/ldb_msg.c
source4/lib/ldb/include/ldb.h