Skip to content

Commit abb3a70

Browse files
free method_name
From this commit: libssh2/libssh2@b11d07d
1 parent 1c304e5 commit abb3a70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vendor/libssh2/src/agent.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,10 @@ agent_sign(LIBSSH2_SESSION *session, unsigned char **sig, size_t *sig_len,
520520
memcpy(*sig, s, *sig_len);
521521

522522
error:
523+
524+
if(method_name)
525+
LIBSSH2_FREE(session, method_name);
526+
523527
LIBSSH2_FREE(session, transctx->request);
524528
transctx->request = NULL;
525529

0 commit comments

Comments
 (0)