r13256: Free temporary memory on error cases, and try to clean up what's left
authorAndrew Bartlett <abartlet@samba.org>
Tue, 31 Jan 2006 10:03:44 +0000 (10:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:51:39 +0000 (13:51 -0500)
commitf9316daa4697bea13d2795c95a1486119de56e67
treef135ac706db2523fcf2da4440600aaa6420a032a
parent60f8666ae88c5a03b0da58acb94015337442e18b
r13256: Free temporary memory on error cases, and try to clean up what's left
earlier.

Move gendb_search() to use talloc_vasprintf() and steal only the parts
actually being used for the results.

Andrew Bartlett
(This used to be commit 53efb3e3e980c768e0aee216ccd8dc3e14707246)
source4/dsdb/samdb/ldb_modules/password_hash.c
source4/lib/gendb.c