From 8bcc9c407af43ef89dc846b7fbe782be7c440600 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Sat, 1 Jan 2011 21:15:22 +0000 Subject: Fix mem leak as noticed by stevan --- xxxterm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xxxterm.c') diff --git a/xxxterm.c b/xxxterm.c index 46edf47..381b0fd 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -4502,6 +4502,7 @@ undo_close_tab_push(const gchar *uri) if (undo_count > XT_MAX_UNDO_CLOSE_TAB) { u2 = TAILQ_LAST(&undos, undo_tailq); TAILQ_REMOVE(&undos, u2, entry); + g_free(u2->uri); g_free(u2); } else undo_count++; -- cgit 1.4.1-2-gfad0