From 887f4fbf4396489f353773de0606597c68f71b8a Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Wed, 4 Sep 2013 16:50:14 +1000 Subject: Free memory on error Reviewed-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed Sep 18 19:46:41 CEST 2013 on sn-devel-104 --- source4/libnet/libnet_site.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit