[PATCH] mem leak in tty_io.c
The recent patch to clean up user accesses introduced a memory leak. If
write_buf is reallocated, the old buffer isn't freed. Also, since kfree
can take nulls, I removed the if from the other kfree.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing
Please register or sign in to comment