[PATCH] staging: lustre: Don't leak 'buffer' in cfs_get_environ()
If 'down_read_trylock' fails we'll curently leak the memory allocated to 'buffer'. Fix the leak by simply kfree'ing 'buffer' before returning '-EDEADLK'. Signed-off-by: Jesper Juhl --- .../lustre/lustre/libcfs/linux/linux-curproc.c |4 +
[PATCH] staging: vt6655: don't leak when returning -EOPNOTSUPP in vt6655_hostap_ioctl
Make sure we always free(param); and remove a redundant "goto out;" just before we'll hit the label anyway. Signed-off-by: Jesper Juhl --- drivers/staging/vt6655/hostap.c | 25 ++--- 1 files changed, 10 insertions(+), 15 deletions(-) diff --git a/drivers