summaryrefslogtreecommitdiff
path: root/os/xdmauth.c
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 /os/xdmauth.c
parenta01f17d6dec02f80144e108f748783cb4e429ebb (diff)
Coverity #833: Fix a rather nasty memory leak.
Diffstat (limited to 'os/xdmauth.c')
-rw-r--r--os/xdmauth.c2
1 files changed, 2 insertions, 0 deletions
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;
}