summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-03 01:03:11 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-03 01:03:11 +0000
commit416d6c61338acaa58f986b27408992a0f324d32f (patch)
tree8f6a94503388a3ba140ba977fd985362f8cc1a74
parent32cba66971545abf95e272cce635a8b0df882272 (diff)
Coverity #573: Plug a leak on the error path.
-rw-r--r--ChangeLog5
-rw-r--r--src/Xcomposite.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2caa03a..fb88432 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-02 Adam Jackson <ajax@freedesktop.org>
+
+ * src/Xcomposite.c:
+ Coverity #573: Plug a leak on the error path.
+
2006-3-13 Deron Johnson <deron.johnson@sun.com>
* configure.ac
diff --git a/src/Xcomposite.c b/src/Xcomposite.c
index 0a359c0..b352e41 100644
--- a/src/Xcomposite.c
+++ b/src/Xcomposite.c
@@ -132,6 +132,7 @@ XCompositeExtAddDisplay (XCompositeExtInfo *extinfo,
{
UnlockDisplay (dpy);
SyncHandle ();
+ Xfree(info);
return 0;
}
info->major_version = rep.majorVersion;