AmendHub

Download:

jcs

/

subtext

/

amendments

/

145

session: Free the session at close, not the array of sessions :(


jcs made amendment 145 over 2 years ago
--- session.c Mon Jun 13 16:36:27 2022 +++ session.c Thu Jun 16 09:41:33 2022 @@ -311,7 +311,7 @@ session_close(struct session *session) panic("session_close failed to find session to remove"); nsessions--; - free(sessions); + free(session); } void