]> git.sur5r.net Git - i3/i3/commit
fix i3bar crashing when I3SOCK present (#2471)
authorkoebi <github@ezelo.de>
Mon, 26 Sep 2016 15:01:30 +0000 (17:01 +0200)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Mon, 26 Sep 2016 15:01:30 +0000 (08:01 -0700)
commit655ed0ba27b262fe6bd3d308df37f79e3c10d7c9
tree7447c18c73cb69be64ffb6d61c71996d395202bb
parent23ee16077a7e419ec6fc2c995d6e8f273a8238ca
fix i3bar crashing when I3SOCK present (#2471)

When I3SOCK is present, socket_path might be a pointer to an
environment variable, which cannot be free'd in line 157. This
commit duplicates the string if I3SOCK is present, thus making
socket_path a free-able pointer again.
i3bar/src/main.c