summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-03 01:43:33 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-03 01:43:33 +0000
commit01ebd633017249c496f378df511586c973d49708 (patch)
tree3c814a86b2a60d8782469722f4593a2976675844
parenta01f17d6dec02f80144e108f748783cb4e429ebb (diff)
Coverity #833: Fix a rather nasty memory leak.
-rw-r--r--ChangeLog5
-rw-r--r--os/xdmauth.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0a65851ff..5b0decbe8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2006-04-02 Adam Jackson <ajax@freedesktop.org>
+ * os/xdmauth.c:
+ Coverity #833: Fix a rather nasty memory leak.
+
+2006-04-02 Adam Jackson <ajax@freedesktop.org>
+
* hw/xfree86/dri/dri.c:
Coverity #983: Move some risky debugging code inside #ifdef
DEBUG.
diff --git a/os/xdmauth.c b/os/xdmauth.c
index f88d25a27..0d7691e13 100644
--- a/os/xdmauth.c
+++ b/os/xdmauth.c
@@ -436,10 +436,12 @@ XdmToID (unsigned short cookie_length, char *cookie)
{
xfree (client);
xfree (cookie);
+ xfree (plain);
return auth->id;
}
}
xfree (cookie);
+ xfree (plain);
return (XID) -1;
}