From: Dan Carpenter <hidden> Date: 2018-12-21 09:10:26
The function is leaking "opts" on the error paths.
Fixes: 90e3b564ab93 ("smack: take the guts of smack_parse_opts_str() into a new helper")
Signed-off-by: Dan Carpenter <redacted>
---
security/smack/smack_lsm.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
From: Al Viro <viro@zeniv.linux.org.uk> Date: 2018-12-21 16:37:03
On Fri, Dec 21, 2018 at 12:09:58PM +0300, Dan Carpenter wrote:
The function is leaking "opts" on the error paths.
Fixes: 90e3b564ab93 ("smack: take the guts of smack_parse_opts_str() into a new helper")
Signed-off-by: Dan Carpenter <redacted>
From: Al Viro <viro@zeniv.linux.org.uk> Date: 2018-12-21 16:42:26
On Fri, Dec 21, 2018 at 04:36:54PM +0000, Al Viro wrote:
On Fri, Dec 21, 2018 at 12:09:58PM +0300, Dan Carpenter wrote:
quoted
The function is leaking "opts" on the error paths.
Fixes: 90e3b564ab93 ("smack: take the guts of smack_parse_opts_str() into a new helper")
Signed-off-by: Dan Carpenter <redacted>
D'oh... Applied, thanks for spotting that braino.
On the other hand, it's easier to do it this way - the caller will free the damn thing
on error, anyway:
On Fri, Dec 21, 2018 at 04:36:54PM +0000, Al Viro wrote:
quoted
On Fri, Dec 21, 2018 at 12:09:58PM +0300, Dan Carpenter wrote:
quoted
The function is leaking "opts" on the error paths.
Fixes: 90e3b564ab93 ("smack: take the guts of smack_parse_opts_str() into a new helper")
Signed-off-by: Dan Carpenter <redacted>
D'oh... Applied, thanks for spotting that braino.
On the other hand, it's easier to do it this way - the caller will free the damn thing
on error, anyway: