summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-22 22:16:47 +0200
committerraveit65 <[email protected]>2022-07-21 19:33:52 +0200
commit128c19c30f750c99ca0d202132e6e9042c2ab65d (patch)
tree4cf9b3e46b4b0460f10ce32d7e29bcd143e3b829
parente97cb1b0c0a7e402e31c722760cd45f50765986f (diff)
downloadcaja-128c19c30f750c99ca0d202132e6e9042c2ab65d.tar.bz2
caja-128c19c30f750c99ca0d202132e6e9042c2ab65d.tar.xz
caja-module: fix memory leak
-rw-r--r--libcaja-private/caja-module.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcaja-private/caja-module.c b/libcaja-private/caja-module.c
index fea4b9b5..2cb6fe11 100644
--- a/libcaja-private/caja-module.c
+++ b/libcaja-private/caja-module.c
@@ -181,12 +181,14 @@ add_module_objects (CajaModule *module)
if (module->list_pyfiles)
{
- filename = g_strconcat(g_list_nth_data(pyfiles, i), ".py", NULL);
+ g_free (filename);
+ filename = g_strconcat (g_list_nth_data (pyfiles, i), ".py", NULL);
}
object = caja_module_add_type (types[i]);
caja_extension_register (filename, object);
}
+ g_free (filename);
}
static CajaModule *
@@ -231,6 +233,7 @@ load_module_dir (const char *dirname)
name,
NULL);
caja_module_load_file (filename);
+ g_free (filename);
}
}
g_dir_close (dir);