summaryrefslogtreecommitdiff
path: root/mate-session
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-05-02 14:13:51 +0200
committerraveit65 <[email protected]>2019-05-04 23:33:29 +0200
commit383951fe3a2555cd1747649b04ec00a15f94eb73 (patch)
tree2a59ed5d2aad93978c855fb21d6da925a5bcbe3c /mate-session
parentd3228db51671eb93fdfdca28cf729c11df3300ca (diff)
downloadmate-session-manager-383951fe3a2555cd1747649b04ec00a15f94eb73.tar.bz2
mate-session-manager-383951fe3a2555cd1747649b04ec00a15f94eb73.tar.xz
main: Potential leak of memory pointed to by 'new_argv'
Diffstat (limited to 'mate-session')
-rw-r--r--mate-session/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mate-session/main.c b/mate-session/main.c
index 4522aff..2b1f012 100644
--- a/mate-session/main.c
+++ b/mate-session/main.c
@@ -524,9 +524,12 @@ static gboolean require_dbus_session(int argc, char** argv, GError** error)
if (!execvp("dbus-launch", new_argv))
{
g_set_error(error, G_SPAWN_ERROR, G_SPAWN_ERROR_FAILED, "No session bus and could not exec dbus-launch: %s", g_strerror(errno));
+ g_free (new_argv);
return FALSE;
}
+ g_free (new_argv);
+
/* Should not be reached */
return TRUE;
}