summaryrefslogtreecommitdiff
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
parentbd0bcd84be01052d9d1ebd075f459113ac96e9de (diff)
Coverity #575: Plug a leak on the error path.
-rw-r--r--ChangeLog5
-rw-r--r--src/Xdbe.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 030ca91..9b481e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-02 Adam Jackson <ajax@freedesktop.org>
+
+ * src/Xdbe.c:
+ Coverity #575: Plug a leak on the error path.
+
2006-02-12 Alan Coopersmith <alan.coopersmith@sun.com>
* man/Makefile.am:
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;