diff options
author | rbuj <[email protected]> | 2021-10-22 22:16:47 +0200 |
---|---|---|
committer | rbuj <[email protected]> | 2021-12-31 13:14:25 +0100 |
commit | 5f6191acc9cb85b0fbcd1d45b9cc7da3d7bd0f13 (patch) | |
tree | 4bd2e7d565c749b94889b88a7d3606ac860c3de9 | |
parent | 91c1a6a3e03949a75c16488a9f649a8805dc7bcd (diff) | |
download | caja-5f6191acc9cb85b0fbcd1d45b9cc7da3d7bd0f13.tar.bz2 caja-5f6191acc9cb85b0fbcd1d45b9cc7da3d7bd0f13.tar.xz |
caja-module: fix memory leak
-rw-r--r-- | libcaja-private/caja-module.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcaja-private/caja-module.c b/libcaja-private/caja-module.c index 70e93b10..7d35b47b 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); |