diff options
author | rbuj <[email protected]> | 2019-03-11 20:38:49 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2019-04-19 23:36:11 +0200 |
commit | afa879b55fe88a9be991f3730bfe71e84b2e31d5 (patch) | |
tree | cbd69cd68697ede350d43aa7d30e9d19c7bf4a06 /shell/control-center.c | |
parent | f93687d07050480f7b2a13287123823af141b967 (diff) | |
download | mate-control-center-afa879b55fe88a9be991f3730bfe71e84b2e31d5.tar.bz2 mate-control-center-afa879b55fe88a9be991f3730bfe71e84b2e31d5.tar.xz |
control-center: Fix memory leak
Reported by clang:
control-center.c:84:2: warning: Potential leak of memory pointed to by 'action'
g_slist_free(key_list);
^~~~~~~~~~~~
Diffstat (limited to 'shell/control-center.c')
-rw-r--r-- | shell/control-center.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/control-center.c b/shell/control-center.c index 55c4246d..20d2012b 100644 --- a/shell/control-center.c +++ b/shell/control-center.c @@ -70,6 +70,8 @@ static GSList* get_actions_list(void) if ((action->item = load_desktop_item_from_unknown(temp[1])) == NULL) { + g_free (action->name); + g_free (action); g_warning("get_actions_list() - PROBLEM - Can't load %s\n", temp[1]); } else |