summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libnet/libnet_site.c1
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;
}