s3-winbind: Fix memory leak with each cached credential login
authorAndreas Schneider <asn@samba.org>
Wed, 29 Jun 2016 11:38:19 +0000 (13:38 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 29 Jun 2016 17:03:52 +0000 (19:03 +0200)
commit826f61960ec74deedc9d556a3b8fe04d9178dcd8
treeafe887cdeac75c868c3c1939d0a71ef5b22d53a9
parent1be45ab4d5bb8a6369d941e677f00ed5517005bf
s3-winbind: Fix memory leak with each cached credential login

When we allow offline logon and have a lot of logins, windbind will leak
4k of memory which each log in. On systems with heavy load this can grow
quickly and the OOM killer will kill Winbind.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11999

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Jun 29 19:03:53 CEST 2016 on sn-devel-144
source3/winbindd/winbindd_cache.c