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)
commit53efb3e3e980c768e0aee216ccd8dc3e14707246
tree114e4ee52fd007c6d5b042f7e8eaaa6d9280093c
parentcd2f94a65817bfae20ac21b730a2c42d8e581ab3
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
source/dsdb/samdb/ldb_modules/password_hash.c
source/lib/gendb.c