[SBI] Fix memory leak for nghttp2 session (#1618)

Delete nghttp2 session to prevent memory leaks.
The issue was detected using valgrind.
This commit is contained in:
Bostjan Meglic 2022-06-23 13:43:36 +02:00 committed by GitHub
parent 13421119c3
commit c9598fb9c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -477,6 +477,7 @@ static void session_remove(ogs_sbi_session_t *sbi_sess)
ogs_list_remove(&server->session_list, sbi_sess);
stream_remove_all(sbi_sess);
nghttp2_session_del(sbi_sess->session);
ogs_assert(sbi_sess->poll.read);
ogs_pollset_remove(sbi_sess->poll.read);