diff --git a/ChangeLog b/ChangeLog index 0a65851ff..5b0decbe8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-04-02 Adam Jackson + + * os/xdmauth.c: + Coverity #833: Fix a rather nasty memory leak. + 2006-04-02 Adam Jackson * hw/xfree86/dri/dri.c: 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; }