From ccf49aa48da2107a5e23bdcaf9135a1538c78833 Mon Sep 17 00:00:00 2001 From: RichardHitt Date: Thu, 17 Apr 2014 15:07:50 -0700 Subject: Fix #928. Fix memory leak, mea culpa. --- src/common/text.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/common') diff --git a/src/common/text.c b/src/common/text.c index b6343f27..00f311c0 100644 --- a/src/common/text.c +++ b/src/common/text.c @@ -300,7 +300,10 @@ scrollback_load (session *sess) /* If nothing but funny trailing matter e.g. 0x0d or 0x0d0a, toss it */ if (n_bytes >= 1 && buf[0] == 0x0d) + { + g_free (buf); continue; + } n_bytes--; buf_tmp = buf; -- cgit 1.4.1