From 01ebd633017249c496f378df511586c973d49708 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 3 Apr 2006 01:43:33 +0000 Subject: [PATCH] Coverity #833: Fix a rather nasty memory leak. --- ChangeLog | 5 +++++ os/xdmauth.c | 2 ++ 2 files changed, 7 insertions(+) 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; }