From: Dan Carpenter Date: Fri, 1 Feb 2013 13:28:27 +0000 (+0300) Subject: sony-laptop: leak in error handling sony_nc_lid_resume_setup() X-Git-Tag: v3.9-rc1~13^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34cf1df34aba1a6274deeef92ad6d02d5f52dab0;p=pandora-kernel.git sony-laptop: leak in error handling sony_nc_lid_resume_setup() We need to decrement "i" first because the current "i" was not allocated succesfully. Also we should go free the way down to zero to avoid a leak. Signed-off-by: Dan Carpenter Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed