diff options
author | bhatman1441 <blackhat1441@protonmail.com> | 2023-07-10 15:29:30 +0300 |
---|---|---|
committer | bhatman1441 <blackhat1441@protonmail.com> | 2023-07-10 15:29:30 +0300 |
commit | 0a91e3322381afb0d61a5672128fd1937fb1f398 (patch) | |
tree | 3bef299c51dfd4e1d43cbb64eb73f13bc0a5ba48 /src | |
parent | 1d9787e5b7fc8d6cad993c6480a2c6a94e6c071a (diff) |
Fix memory leaks in remmina_plugin_manager_init with g_free and g_ptr_array_free
Diffstat (limited to 'src')
-rw-r--r-- | src/remmina_plugin_manager.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/remmina_plugin_manager.c b/src/remmina_plugin_manager.c index 1b056ea34..d578c4aad 100644 --- a/src/remmina_plugin_manager.c +++ b/src/remmina_plugin_manager.c @@ -364,6 +364,7 @@ void remmina_plugin_manager_init() fullpath = g_strdup_printf(REMMINA_RUNTIME_PLUGINDIR "/%s", name); if (!remmina_plugin_manager_loader_supported(ptr)) { g_ptr_array_add(alternative_language_plugins, g_strdup_printf(REMMINA_RUNTIME_PLUGINDIR "/%s", name)); + g_free(fullpath); continue; } remmina_plugin_native_load(&remmina_plugin_manager_service, fullpath); @@ -429,6 +430,7 @@ void remmina_plugin_manager_init() } g_slist_free(secret_plugins); + g_ptr_array_free(alternative_language_plugins, TRUE); } gboolean remmina_plugin_manager_loader_supported(const char *filetype) { |