From 523ca6754f1f1f5e86367c644bb721b20f5fbebd Mon Sep 17 00:00:00 2001 From: Monsta Date: Wed, 3 Dec 2014 16:05:43 +0300 Subject: libcaja-private: don't leak memory --- libcaja-private/caja-emblem-utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libcaja-private/caja-emblem-utils.c') diff --git a/libcaja-private/caja-emblem-utils.c b/libcaja-private/caja-emblem-utils.c index f837df69..951887aa 100644 --- a/libcaja-private/caja-emblem-utils.c +++ b/libcaja-private/caja-emblem-utils.c @@ -395,7 +395,6 @@ caja_emblem_remove_emblem (const char *keyword) struct stat stat_buf; struct utimbuf ubuf; - dir = g_strdup_printf ("%s/.icons/hicolor/48x48/emblems", g_get_home_dir ()); stat_dir = g_strdup_printf ("%s/.icons/hicolor", @@ -425,6 +424,8 @@ caja_emblem_remove_emblem (const char *keyword) return FALSE; } + g_free (path); + /* Touch the toplevel dir */ if (stat (stat_dir, &stat_buf) == 0) { -- cgit v1.2.1