summaryrefslogtreecommitdiff
path: root/daemon/gdm-session-direct.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2010-01-20 14:02:15 -0500
committerRay Strode <rstrode@redhat.com>2010-01-20 14:02:15 -0500
commit6b28faeac82d3310c3c142187069d10b513cbf97 (patch)
tree998d8a7ec8a7eb0db599289d8ca9d4eb9b2dabca /daemon/gdm-session-direct.c
parentf201e90319a384416c3b8af7806dd0b753279d41 (diff)
downloadgdm-6b28faeac82d3310c3c142187069d10b513cbf97.tar.gz
Don't double-free TryExec variable
If the program could not be found the exec variable would get freed twice.
Diffstat (limited to 'daemon/gdm-session-direct.c')
-rw-r--r--daemon/gdm-session-direct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/gdm-session-direct.c b/daemon/gdm-session-direct.c
index d2e1a837..203261bb 100644
--- a/daemon/gdm-session-direct.c
+++ b/daemon/gdm-session-direct.c
@@ -540,6 +540,7 @@ get_session_command_for_file (const char *file,
if (exec != NULL) {
res = is_prog_in_path (exec);
g_free (exec);
+ exec = NULL;
if (! res) {
g_debug ("GdmSessionDirect: Command not found: %s",