Re: [PATCH][next] ubifs: authentication: fix memory leak on error exit path

2018-10-29 Thread Richard Weinberger
Am Dienstag, 30. Oktober 2018, 00:21:46 CET schrieb Colin King: > From: Colin Ian King > > Currently a failure when calling ubifs_read_nnode results in a leak > of desc and buf because of a direct return. Fix this by exiting via > label 'out' that performs the necessary free'ing of the resources.

[PATCH][next] ubifs: authentication: fix memory leak on error exit path

2018-10-29 Thread Colin King
From: Colin Ian King Currently a failure when calling ubifs_read_nnode results in a leak of desc and buf because of a direct return. Fix this by exiting via label 'out' that performs the necessary free'ing of the resources. Fixes: a1dc58140f7e ("ubifs: authentication: Authenticate LPT") Signed-