Commit d2c164fc authored by Maciej S. Szmigiero's avatar Maciej S. Szmigiero Committed by Romain Bouvier
Browse files

Free the intermediate "cmd" variable in xfsm_startup_init()

The memory pointed by "cmd" variable is allocated by g_strdup_printf()
for ssh-agent command line, then this variable is overwritten to point
to dbus-update-activation-environment command line without freeing the
memory it previously pointed to.
Let's add the missing g_free() call to avoid a memory leak.
parent 0d288f68
......@@ -281,6 +281,8 @@ xfsm_startup_init (XfconfChannel *channel)
cmd = g_strdup_printf ("%s -s", ssh_agent_path);
/* keep this around for shutdown */
running_sshagent = xfsm_startup_init_agent (cmd, "ssh-agent");
g_free (cmd);
/* update dbus environment */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment