summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorRichardHitt <rbh00@netcom.com>2014-04-17 15:07:50 -0700
committerRichardHitt <rbh00@netcom.com>2014-04-17 15:07:50 -0700
commitccf49aa48da2107a5e23bdcaf9135a1538c78833 (patch)
tree8b0853de25ef8c97d88e550da548261ebf059e0f /src/common
parentb66edd372eeffdaa871d472e11bb0a408115fab0 (diff)
Fix #928. Fix memory leak, mea culpa.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/text.c3
1 files changed, 3 insertions, 0 deletions
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;