fs/squashfs: sqfs_search_dir: fix memory leaks 70/250870/1
authorRichard Genoud <richard.genoud@posteo.net>
Tue, 3 Nov 2020 11:11:06 +0000 (12:11 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 5 Jan 2021 07:06:33 +0000 (16:06 +0900)
commite4662562fb01567f6fb0a1893027b16ca682f52e
tree8fb3505c3811353408389912995851b4a2aa0322
parent1dc8cc585f4483040bdc0f95fc6d5a20bcb82f81
fs/squashfs: sqfs_search_dir: fix memory leaks

path, target, res, rem and sym_tokens were not free on error nor success.

Reviewed-by: Joao Marcos Costa <jmcosta944@gmail.com>
Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
[jh80.chung: cherry picked from mainline commit cd54591afd42c547f43a7d509862f20e09264cde]
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I9417cb0f010dc267eeef4d0ee1aa8ba45a6678bd
fs/squashfs/sqfs.c