AmendHub

Download:

jcs

/

subtext

/

amendments

/

654

sysop: Plug small leak on retry


jcs made amendment 654 1 day ago
--- sysop.c Fri Sep 18 16:52:50 2026 +++ sysop.c Tue Sep 22 16:31:02 2026 @@ -637,8 +637,11 @@ motd_write: tmp = session_field_input(s, 2048, s->terminal_columns - 1, motd, true, 0); - if (tmp == NULL) + if (tmp == NULL) { + if (motd) + xfree(&motd); break; + } session_output(s, "\r\n", 2); session_flush(s);