diff options
Diffstat (limited to 'mate-session/gsm-util.c')
-rw-r--r-- | mate-session/gsm-util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mate-session/gsm-util.c b/mate-session/gsm-util.c index d45ca8d..6320b24 100644 --- a/mate-session/gsm-util.c +++ b/mate-session/gsm-util.c @@ -164,9 +164,10 @@ gsm_util_get_empty_tmp_session_dir (void) dir = g_dir_open (tmp, 0, NULL); if (dir) { while ((filename = g_dir_read_name (dir))) { - char *path = g_build_filename (tmp, filename, + gchar *path = g_build_filename (tmp, filename, NULL); g_unlink (path); + g_free (path); } g_dir_close (dir); } |