From: Trond Myklebust Date: Sat, 9 Jun 2007 19:41:42 +0000 (-0400) Subject: SUNRPC: Fix a memory leak in the auth credcache code X-Git-Tag: v2.6.23-rc1~1073^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ab9bb7243489f9db3abf3d05521ddfc6b184c0a;p=pandora-kernel.git SUNRPC: Fix a memory leak in the auth credcache code The leak only affects the RPCSEC_GSS caches, since they are the only ones that are dynamically allocated... Rename the existing rpcauth_free_credcache() to rpcauth_clear_credcache() in order to better describe its role, then add a new function rpcauth_destroy_credcache() that actually frees the cache in addition to clearing it out. Also move the call to destroy the credcache in gss_destroy() to come before the rpc upcall pipe is unlinked. Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed