Skip to content

Commit 3d86066

Browse files
authored
fix posture_checks.controller_instance_id leak (#346)
1 parent e2d756d commit 3d86066

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/posture.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ void ziti_send_posture_data(ziti_context ztx) {
202202

203203
ztx->posture_checks->must_send = true;
204204
FREE(ztx->posture_checks->previous_api_session_id);
205+
FREE(ztx->posture_checks->controller_instance_id);
205206
ztx->posture_checks->previous_api_session_id = strdup(ztx->api_session->id);
206207
ztx->posture_checks->controller_instance_id = strdup(ztx->controller.instance_id);
207208
} else {

0 commit comments

Comments
 (0)