summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-04-22 13:56:00 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-04-22 13:56:00 +0000
commit8421ed85f076ed9e1b72adce56c75e22d1a04ba9 (patch)
treebb9ad85d6f77e76d65e92ca349f5904d22f37014
parent6acf490a78630612a06a51c2cf828a4a08935296 (diff)
src/vte.c: Prevent double-free of incoming buffer (patch from Havoc).
-rw-r--r--src/vte.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vte.c b/src/vte.c
index 05d24f9..15a3efe 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -3281,12 +3281,14 @@ vte_terminal_process_incoming(gpointer data)
/* Discard the data, we can't use it. */
terminal->pvt->n_incoming = 0;
g_free(terminal->pvt->incoming);
+ terminal->pvt->incoming;
again = FALSE;
}
} else {
/* No leftovers, clean out the data. */
terminal->pvt->n_incoming = 0;
g_free(terminal->pvt->incoming);
+ terminal->pvt->incoming;
again = FALSE;
}