1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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
This commit is contained in:
Alistair Leslie-Hughes 2013-09-04 16:50:14 +10:00 committed by Jeremy Allison
parent 75f353b857
commit 887f4fbf43

View File

@ -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;
}