s4 dsdb util: samdb_client_site_name clean up
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 13 Feb 2019 21:53:37 +0000 (10:53 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Feb 2019 05:53:14 +0000 (06:53 +0100)
commitea2de21dd8a2f8dffbb09c635fb34f22d9e344f9
treeeb484fbcd31e057b2b6614ded0a4242d2e86a5f6
parentf0e96d21b55c03f4610f4a2013cf7fdf2a50e29b
s4 dsdb util: samdb_client_site_name clean up

* Initialise pointers to NULL
* replace talloc_free with TALLOC_FREE
* add goto exit to ensure memory deallocated correctly

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Feb 14 06:53:14 CET 2019 on sn-devel-144
source4/dsdb/common/util.c