aboutsummaryrefslogtreecommitdiffstats
path: root/libaxl_connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'libaxl_connect.c')
-rw-r--r--libaxl_connect.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libaxl_connect.c b/libaxl_connect.c
index 529295d..27b89e1 100644
--- a/libaxl_connect.c
+++ b/libaxl_connect.c
@@ -271,7 +271,12 @@ libaxl_connect(const char *restrict display, char **restrict reasonp)
goto fail;
}
+ if (xauthfile_free)
+ free(xauthfile);
libaxl_context_free(ctx);
+ free(authbuf);
+ free(host);
+ free(protocol);
return conn;
fail: