OSDN Git Service

cifs: Fix a tiny potential memory leak
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 5 Jan 2019 18:18:03 +0000 (21:18 +0300)
committerSteve French <stfrench@microsoft.com>
Thu, 10 Jan 2019 20:32:30 +0000 (14:32 -0600)
commitc715f89c4dab76317c773df2611af2dac4dea2b7
treeeb9411579d31029e2de2cfe39919262ebddfdbc2
parent8428817dc40006dca0a531cfa06e89cb3b41790d
cifs: Fix a tiny potential memory leak

The most recent "it" allocation is leaked on this error path.  I
believe that small allocations always succeed in current kernels so
this doesn't really affect run time.

Fixes: 54be1f6c1c37 ("cifs: Add DFS cache routines")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/dfs_cache.c