summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_domain.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libnet/libnet_domain.c')
-rw-r--r--source4/libnet/libnet_domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/libnet_domain.c b/source4/libnet/libnet_domain.c
index 6fd3b59a05..ccdfdaf134 100644
--- a/source4/libnet/libnet_domain.c
+++ b/source4/libnet/libnet_domain.c
@@ -845,7 +845,7 @@ NTSTATUS libnet_DomainCloseSamr_recv(struct composite_context *c, struct libnet_
/* domain policy handle closed successfully */
ZERO_STRUCT(ctx->samr.handle);
- talloc_free(ctx->samr.name);
+ talloc_free(discard_const_p(char, ctx->samr.name));
talloc_free(ctx->samr.sid);
ctx->samr.name = NULL;
ctx->samr.sid = NULL;