summaryrefslogtreecommitdiff
path: root/src/Xdbe.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-03 00:51:20 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-03 00:51:20 +0000
commit1225f28f6ef0712c9adf52edd8b1a3205bbc76b2 (patch)
treeeab7c0dd710ae1cba90dc96ce0715056ad288043 /src/Xdbe.c
parentbd0bcd84be01052d9d1ebd075f459113ac96e9de (diff)
downloadxorg-lib-libXext-1225f28f6ef0712c9adf52edd8b1a3205bbc76b2.tar.gz
Coverity #575: Plug a leak on the error path.
Diffstat (limited to 'src/Xdbe.c')
-rw-r--r--src/Xdbe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Xdbe.c b/src/Xdbe.c
index 954c8f0..8897179 100644
--- a/src/Xdbe.c
+++ b/src/Xdbe.c
@@ -462,6 +462,7 @@ XdbeBackBufferAttributes *XdbeGetBackBufferAttributes(
if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) {
UnlockDisplay (dpy);
SyncHandle ();
+ Xfree(attr);
return NULL;
}
attr->window = rep.attributes;