diff options
author | Christian Dywan <christian@lanedo.com> | 2010-09-23 09:21:25 -0700 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2011-01-05 14:55:42 +0000 |
commit | 916620ea96904ac88503f4b4a47e7e38024d64e4 (patch) | |
tree | 2eb6af357bc8bc5a2028f5dde9bf68871c400c44 /tools | |
parent | 68b1d6ad5f914c84bf73da23c533655f9d379c41 (diff) | |
download | dbus-916620ea96904ac88503f4b4a47e7e38024d64e4.tar.gz |
Free session file early in dbus-launch
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=29881
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dbus-launch-x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dbus-launch-x11.c b/tools/dbus-launch-x11.c index 0d371346..0f344abe 100644 --- a/tools/dbus-launch-x11.c +++ b/tools/dbus-launch-x11.c @@ -405,6 +405,7 @@ set_address_in_file (char *address, pid_t pid, Window wid) return FALSE; f = fopen (session_file, "w"); + free (session_file); if (f == NULL) return FALSE; /* some kind of error */ fprintf (f, @@ -421,7 +422,6 @@ set_address_in_file (char *address, pid_t pid, Window wid) address, (long)pid, (long)wid); fclose (f); - free (session_file); return TRUE; } |