Re: [tin 2.4.3] snapshots - please test

Thomas Dickey <[email protected]> Sun, 1 Jul 2018 18:53:10 -0400
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
--===============0896281086885360488==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="E39vaYmALEf/7YXx"
Content-Disposition: inline


--E39vaYmALEf/7YXx
Content-Type: multipart/mixed; boundary="OXfL5xGRrasGEqWY"
Content-Disposition: inline


--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jul 01, 2018 at 06:11:25PM -0400, Thomas Dickey wrote:
> On Tue, Jun 05, 2018 at 11:05:44AM +0200, Urs Jan=DFen wrote:
> > I've made snapshots for testing the new features and fixes so far.
> > Please give it a try and report (or even fix) any issues:
> >=20
> > <ftp://ftp.tin.org/pub/news/clients/tin/v2.4/snapshots/tin-2.4.3.tar.xz>
> > <ftp://ftp.tin.org/pub/news/clients/tin/v2.4/snapshots/tin-2.4.3.tar.bz=
2>
> > <ftp://ftp.tin.org/pub/news/clients/tin/v2.4/snapshots/tin-2.4.3.tar.gz>
>=20
> attaching a patch for updated configure script (which obsoletes a couple
> of things, fix is included).

I realized I'd left a memory-leak in the fix - see attached.


--=20
Thomas E. Dickey <[email protected]>
https://invisible-island.net
ftp://ftp.invisible-island.net

--OXfL5xGRrasGEqWY
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="tin-2.4.3-20180605a.patch"
Content-Transfer-Encoding: quoted-printable

# patch by Thomas E. Dickey <[email protected]>
# created  Sun Jul  1 22:50:37 UTC 2018
# -------------------------------------------------------------------------=
-----
# screen.c |    1 +
# string.c |    1 +
# 2 files changed, 2 insertions(+)
# -------------------------------------------------------------------------=
-----
Index: src/screen.c
--- tin-2.4.3-20180605+/src/screen.c	2018-07-01 21:14:00.000000000 +0000
+++ tin-2.4.3-20180605a/src/screen.c	2018-07-01 22:45:47.887001272 +0000
@@ -82,6 +82,7 @@
 		if (used > 0 && used < (int) size)
 			break;
 		size *=3D 2;
+		free(msg);
 	}
=20
 	return msg;
Index: src/string.c
--- tin-2.4.3-20180605+/src/string.c	2018-07-01 21:13:08.000000000 +0000
+++ tin-2.4.3-20180605a/src/string.c	2018-07-01 22:45:58.063371482 +0000
@@ -1316,6 +1316,7 @@
 		if (used > 0 && used < (int) size)
 			break;
 		size *=3D 2;
+		free(str);
 	}
=20
 	return str;

--OXfL5xGRrasGEqWY--

--E39vaYmALEf/7YXx
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAls5W1YACgkQcCNT4PfkjtvbCACffjoE+7CyLKd7pPHyFklCoUiG
v/MAoKNyL//2OPx2nmwMHFFXCJBcFntw
=GMps
-----END PGP SIGNATURE-----

--E39vaYmALEf/7YXx--


--===============0896281086885360488==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KdGluLWRldiBt
YWlsaW5nIGxpc3QKdGluLWRldkB0aW4ub3JnCmh0dHA6Ly9saXN0cy50aW4ub3JnL2NnaS1iaW4v
bWFpbG1hbi9saXN0aW5mby90aW4tZGV2Cg==

--===============0896281086885360488==--