Projects
openEuler:Mainline
libssh2
_service:tar_scm:backport-free-RSA2-related-mem...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-free-RSA2-related-memory-664.patch of Package libssh2
From 30fc410b972e6dec87c248c0fedbff28cfa18f17 Mon Sep 17 00:00:00 2001 From: Will Cosgrove <will@panic.com> Date: Tue, 18 Jan 2022 11:28:13 -0800 Subject: [PATCH] free RSA2 related memory (#664) Free `server_sign_algorithms` and `sign_algo_prefs`. Conflict:NA Reference:https://github.com/libssh2/commit/30fc410b972e6dec87c248c0fedbff28cfa18f17 --- src/session.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/session.c b/src/session.c index 0de5ab3..ae6132c 100644 --- a/src/session.c +++ b/src/session.c @@ -981,6 +981,12 @@ session_free(LIBSSH2_SESSION *session) if(session->remote.lang_prefs) { LIBSSH2_FREE(session, session->remote.lang_prefs); } + if(session->server_sign_algorithms) { + LIBSSH2_FREE(session, session->server_sign_algorithms); + } + if(session->sign_algo_prefs) { + LIBSSH2_FREE(session, session->sign_algo_prefs); + } /* * Make sure all memory used in the state variables are free -- 2.23.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2