]> 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)
commit826d526237b3557a9279ff773b9502f706a9730e
treeeb9411579d31029e2de2cfe39919262ebddfdbc2
parentfc49030f55672322e476295a7be56af712d9bd46
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: dcdc337a7ab2 ("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