diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-12-16 22:28:45 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-12-18 01:34:18 +0100 |
commit | 656c828b9fcd8538b1503f86f8ac499837d7fc59 (patch) | |
tree | 6a1c42cf3638bb8664674ada054f22113fc5ddd9 /source4/dsdb/samdb/ldb_modules/descriptor.c | |
parent | 6967cf27eb94f9097c302bc2807f430ca4a641f2 (diff) | |
download | samba-656c828b9fcd8538b1503f86f8ac499837d7fc59.tar.gz samba-656c828b9fcd8538b1503f86f8ac499837d7fc59.tar.bz2 samba-656c828b9fcd8538b1503f86f8ac499837d7fc59.zip |
lib/ldb Remove talloc_free() that causes double-free in callbacks.
This partially reverts 0941099a, which was a little over-eager in
fixing what were presumed to be memory leaks.
It is always the callbacks responsiblity to free the ares, but if they
don't then the end of the request should handle the cleanup.
Attempting to talloc_free() here will result (as it did in the
descriptor module) in a double-free error if the callback does free
it, and no other caller of ldb_module_send_entry() has this behaviour.
Andrew Bartlett
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/descriptor.c')
0 files changed, 0 insertions, 0 deletions