Skip to content

Commit c41fdea

Browse files
committed
client session BUGFIX memory leak
1 parent 3c55637 commit c41fdea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/session_client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,6 +2061,7 @@ nc_send_rpc(struct nc_session *session, struct nc_rpc *rpc, int timeout, uint64_
20612061
ietfncwd = ly_ctx_get_module(session->ctx, "ietf-netconf-with-defaults", NULL);
20622062
if (!ietfncwd) {
20632063
ERR("Session %u: missing \"ietf-netconf-with-defaults\" schema in the context.", session->id);
2064+
lyd_free(data);
20642065
return NC_MSG_ERROR;
20652066
}
20662067
}

0 commit comments

Comments
 (0)