diff options
author | Alistair Leslie-Hughes <leslie_alistair@hotmail.com> | 2013-09-04 16:50:14 +1000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-09-18 19:46:41 +0200 |
commit | 887f4fbf4396489f353773de0606597c68f71b8a (patch) | |
tree | 8b569bca803acba599f034487be480b56a8fbe3b /source4 | |
parent | 75f353b857d50291672adefc6eefd210c9e8a0f7 (diff) | |
download | samba-887f4fbf4396489f353773de0606597c68f71b8a.tar.gz samba-887f4fbf4396489f353773de0606597c68f71b8a.tar.bz2 samba-887f4fbf4396489f353773de0606597c68f71b8a.zip |
Free memory on error
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Sep 18 19:46:41 CEST 2013 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libnet/libnet_site.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/libnet/libnet_site.c b/source4/libnet/libnet_site.c index 5a58c8aa94..67b8016fa9 100644 --- a/source4/libnet/libnet_site.c +++ b/source4/libnet/libnet_site.c @@ -65,6 +65,7 @@ NTSTATUS libnet_FindSite(TALLOC_CTX *ctx, struct libnet_context *lctx, struct li if (ret != 0) { r->out.error_string = NULL; status = map_nt_error_from_unix_common(errno); + talloc_free(tmp_ctx); return status; } |