aboutsummaryrefslogtreecommitdiffstats
path: root/vconsole.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-09-20 14:18:23 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-09-20 14:18:54 +0200
commit907093ff80f9935179f7e1cec8f66dd3ae329e89 (patch)
tree513089cdf1b5dce704e7e3533136c25b6c3f5c32 /vconsole.c
parenta0508cbf6d021b1c7549714b9c2907146317de66 (diff)
downloadvconsole-907093ff80f9935179f7e1cec8f66dd3ae329e89.tar.gz
plug more memory holes
Diffstat (limited to 'vconsole.c')
-rw-r--r--vconsole.c3
1 files changed, 2 insertions, 1 deletions
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 : "");