https://bugzilla.mindrot.org/show_bug.cgi?id=3403
Bug ID: 3403 Summary: Memory leak Product: Portable OpenSSH Version: 8.9p1 Hardware: Other OS: Windows 10 Status: NEW Severity: enhancement Priority: P5 Component: scp Assignee: unassigned-b...@mindrot.org Reporter: balu.gajj...@gmail.com In the else loop, the args.list is set to NULL without releasing memory resulting in a memory leak. static struct sftp_conn * do_sftp_connect(char *host, char *user, int port, char *sftp_direct, int *reminp, int *remoutp, int *pidp) { if (sftp_direct == NULL) { if (do_cmd(ssh_program, host, user, port, 1, "sftp", reminp, remoutp, pidp) < 0) return NULL; } else { args.list = NULL; addargs(&args, "sftp-server"); if (do_cmd(sftp_direct, host, NULL, -1, 0, "sftp", reminp, remoutp, pidp) < 0) return NULL; } return do_init(*reminp, *remoutp, 32768, 64, limit_kbps); } -- You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ openssh-bugs mailing list openssh-bugs@mindrot.org https://lists.mindrot.org/mailman/listinfo/openssh-bugs