s4-drsutil: fixed a memory leak in samdb_search_count
authorAndrew Tridgell <tridge@samba.org>
Fri, 4 Dec 2009 06:45:38 +0000 (17:45 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 4 Dec 2009 06:49:19 +0000 (17:49 +1100)
commitced3eef776dd44d0f3e9219f77e2660f9e49fa92
tree727b3afc5c6d8ed6037ffd51532e06dfd214ea96
parent4f6d5d0b865a077185e2441d401709325c3e7304
s4-drsutil: fixed a memory leak in samdb_search_count

In general functions that don't return any memory should not take a memory context.
Otherwise it is too easy to have a bug like this where memory is leaked
source4/dsdb/common/util.c
source4/dsdb/samdb/ldb_modules/operational.c
source4/rpc_server/samr/dcesrv_samr.c