]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit336eb66b4d7e20b8847b2ccb2fe1e9ae84bc0e82
treeeb9411579d31029e2de2cfe39919262ebddfdbc2
parentb8c2cc85306b8e654ab1d70b55087ffbf77f9718
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: facceb161143 ("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