clk: ti: fix memory leak

Goto cleanup instead of directly returning. Otherwise,
we would leak memory for variable 'div'.

Signed-off-by: Levente Kurusa <levex@linux.com>
nouveau: fix memory leak

Currently we leak the memory of 'nvbe'. Fix that by
reorganising the error path of the function.

Signed-off-by: Levente Kurusa <levex@linux.com>
staging: comedi: fix memory leak

Call kfree() on bdev. The variable is otherwise leaked.

Signed-off-by: Levente Kurusa <levex@linux.com>
staging: rts5208: fix two memory leaks

Use TRACE_GOTO to instead of TRACE_RET to prevent two memory leaks.

One in mg_get_local_EKB() and one in do_dev_config()

Signed-off-by: Levente Kurusa <levex@linux.com>