From 907093ff80f9935179f7e1cec8f66dd3ae329e89 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 20 Sep 2012 14:18:23 +0200 Subject: plug more memory holes --- vconsole.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vconsole.c') diff --git a/vconsole.c b/vconsole.c index 234fa5f..3660dc7 100644 --- a/vconsole.c +++ b/vconsole.c @@ -39,6 +39,7 @@ void config_write(void) write(fd, data, len); fsync(fd); close(fd); + g_free(data); } /* ------------------------------------------------------------------ */ @@ -629,7 +630,7 @@ static void vconsole_build_recent(struct vconsole_window *win) g_free(h); g_free(action); } - g_free(keys); + g_strfreev(keys); /* finish */ xml = g_strdup_printf(recent_xml, entries ? entries : ""); -- cgit