summaryrefslogtreecommitdiff
path: root/src/XRecord.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XRecord.c')
-rw-r--r--src/XRecord.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/XRecord.c b/src/XRecord.c
index e5357b9..efa47bd 100644
--- a/src/XRecord.c
+++ b/src/XRecord.c
@@ -452,10 +452,9 @@ XRecordGetContext(Display *dpy, XRecordContext context,
ret->client_info = client_inf;
if (!client_inf || !client_inf_str)
{
- free(client_inf);
_XEatDataWords (dpy, rep.length);
UnlockDisplay(dpy);
- XRecordFreeState(ret);
+ XRecordFreeState(ret); /* frees ret->client_info, aka client_inf */
SyncHandle();
return 0;
}