sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 1818c58e4060624ccb9102f88dd977702b688008
parent 17f557298e3578323a7eeb1685ca923f7d638abc
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  6 Aug 2018 14:08:51 -0400

Merge pull request #2430 from ianyfan/socketpath-leaks

Fix memory leaks in get_socketpath
Diffstat:
Mcommon/ipc-client.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/common/ipc-client.c b/common/ipc-client.c @@ -25,6 +25,7 @@ char *get_socketpath(void) { if (line && *line) { return line; } + free(line); } const char *i3sock = getenv("I3SOCK"); if (i3sock) { @@ -37,6 +38,7 @@ char *get_socketpath(void) { if (line && *line) { return line; } + free(line); } return NULL; }