diff options
author | Brian Ashworth <RedSoxFan@users.noreply.github.com> | 2018-08-08 15:26:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 15:26:44 -0400 |
commit | 3c26536267e13859eb6088ce0192579f10ac871f (patch) | |
tree | a4676629358071b0f0748dde33a32d82c9a58175 /common | |
parent | 776b9b7e1fa72ebc4f7e79de280ea5dd9901787e (diff) | |
parent | e28101e6e1ed757fe8a7402c5123ee7e58546895 (diff) |
Merge branch 'master' into master
Diffstat (limited to 'common')
-rw-r--r-- | common/ipc-client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/ipc-client.c b/common/ipc-client.c index 4d2d88cc..24a2f9c2 100644 --- 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; } |