summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/kdc/kdc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/kdc/kdc.c b/source4/kdc/kdc.c
index 172d971aa7..3232f31b39 100644
--- a/source4/kdc/kdc.c
+++ b/source4/kdc/kdc.c
@@ -122,12 +122,15 @@ static void kdc_recv_handler(struct kdc_socket *kdc_socket)
/* queue a pending reply */
rep = talloc(kdc_socket, struct kdc_reply);
if (rep == NULL) {
+ krb5_data_free(&reply);
talloc_free(tmp_ctx);
return;
}
rep->dest_address = talloc_steal(rep, src_addr);
rep->dest_port = src_port;
rep->packet = data_blob_talloc(rep, reply.data, reply.length);
+ krb5_data_free(&reply);
+
if (rep->packet.data == NULL) {
talloc_free(rep);
talloc_free(tmp_ctx);