diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2009-06-18 23:15:47 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2009-06-19 20:29:52 -0400 |
commit | 30df49f54945e75f033a0eb6445c26d37eb33c5e (patch) | |
tree | 2d8897a65ee1721b3d568aa3c78e98fd89204814 /Xi/xiquerydevice.c | |
parent | eb35402d0a5290e8a73d7d1e92f173294c364cc2 (diff) |
Xi: fix 2 memory leaks.
In ProcXIQueryDevice() and XISendDeviceHierarchyEvent().
Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
Diffstat (limited to 'Xi/xiquerydevice.c')
-rw-r--r-- | Xi/xiquerydevice.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Xi/xiquerydevice.c b/Xi/xiquerydevice.c index b316c86d1..6aa168521 100644 --- a/Xi/xiquerydevice.c +++ b/Xi/xiquerydevice.c @@ -153,6 +153,7 @@ ProcXIQueryDevice(ClientPtr client) WriteReplyToClient(client, sizeof(xXIQueryDeviceReply), &rep); WriteToClient(client, rep.length * 4, ptr); + xfree(ptr); return rc; } |