summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-10-29 08:21:40 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-10-29 08:21:40 +0000
commit7c9923c9f6713883b775bf0577464d16a4492716 (patch)
tree5e1053cc4ac62bcb7e68d865930dd4492ff4bbe6
parent64c6fd21c1c176ec3c97a93fdf3d5bdaa2edb711 (diff)
downloadsamba-7c9923c9f6713883b775bf0577464d16a4492716.tar.gz
samba-7c9923c9f6713883b775bf0577464d16a4492716.tar.bz2
samba-7c9923c9f6713883b775bf0577464d16a4492716.zip
Fix a nice little memory leak in our uid changing code.
Andrew Bartlett (This used to be commit 5c4967c70dfab78733ef21e3a5eaf252a5958613)
-rw-r--r--source3/smbd/uid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index 9a38d6e9e2..48b9768358 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -49,6 +49,8 @@ BOOL change_to_guest(void)
current_user.conn = NULL;
current_user.vuid = UID_FIELD_INVALID;
+ passwd_free(&pass);
+
return True;
}