diff options
author | Adam Jackson <ajax@nwnk.net> | 2006-04-03 01:43:33 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2006-04-03 01:43:33 +0000 |
commit | 01ebd633017249c496f378df511586c973d49708 (patch) | |
tree | 3c814a86b2a60d8782469722f4593a2976675844 | |
parent | a01f17d6dec02f80144e108f748783cb4e429ebb (diff) |
Coverity #833: Fix a rather nasty memory leak.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | os/xdmauth.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -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; } |