thanks, pushed to -current and -stable
On 2026/06/23 21:17, Larry Moore wrote:
> Hello,
>
> Attached is a patch for iaxmodem 1.3.5 to plug a memory leak when the IAX
> server is unreachable.
>
> Cheers,
>
> Larry.
> diff -Nupr /usr/ports/telephony/iaxmodem/Makefile ./Makefile
> --- /usr/ports/telephony/iaxmodem/Makefile Wed Feb 18 21:43:48 2026
> +++ ./Makefile Mon Jun 22 14:48:00 2026
> @@ -1,6 +1,7 @@
> COMMENT= a software fax modem that uses an IAX channel
>
> DISTNAME= iaxmodem-1.3.5
> +REVISION= 0
> CATEGORIES= telephony
> SITES= ${SITE_SOURCEFORGE:=iaxmodem/}
>
> diff -Nupr /usr/ports/telephony/iaxmodem/patches/patch-iaxmodem_c
> ./patches/patch-iaxmodem_c
> --- /usr/ports/telephony/iaxmodem/patches/patch-iaxmodem_c Wed Feb 18
> 21:43:48 2026
> +++ ./patches/patch-iaxmodem_c Mon Jun 22 14:45:29 2026
> @@ -62,3 +62,11 @@ Index: iaxmodem.c
> _exit(-1);
> }
>
> +@@ -1566,6 +1564,7 @@
> + if (regstate == PENDING) {
> + printlog(LOG_ERROR, "Registration timed out.\n");
> + }
> ++ iax_destroy(session[1]);
> + break;
> + case IAX_EVENT_ACCEPT:
> + phonestate = PHONE_CALLACCEPTED;