s4:ldb Fix talloc hirarchy in LDIF parsing code
authorAndrew Bartlett <abartlet@samba.org>
Sun, 5 Jul 2009 23:24:18 +0000 (09:24 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 5 Jul 2009 23:50:47 +0000 (09:50 +1000)
commitda45d5215d1da2a1ff1b72b9bc3f10ec2192fba9
treea8455167957695c17ecb326534215987059b760d
parent880c286bc92db809553c5af2c4a26fe34d6a58dc
s4:ldb Fix talloc hirarchy in LDIF parsing code

The problem here was that some parts of the ldb_message were still
attached to the ldb_ldif structure, and when only the message was
taken (and the ldif free'ed to reclaim memory) we refereced free'ed
memory.

Andrew Bartlett
source4/lib/ldb/common/ldb_ldif.c