diff options
author | Ray Strode <rstrode@redhat.com> | 2010-01-20 14:02:15 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2010-01-20 14:02:15 -0500 |
commit | 6b28faeac82d3310c3c142187069d10b513cbf97 (patch) | |
tree | 998d8a7ec8a7eb0db599289d8ca9d4eb9b2dabca /daemon/gdm-session-direct.c | |
parent | f201e90319a384416c3b8af7806dd0b753279d41 (diff) | |
download | gdm-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.c | 1 |
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", |