commit | 52da2449e10039d3bb04c598d24cb1a34530b716 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Sun Sep 02 21:21:46 2012 +0800 |
committer | Samuel Ortiz <sameo@linux.intel.com> | Tue Sep 25 00:17:24 2012 +0200 |
tree | ec8f1ede07653b09902edb4670efaa2b4cc9269d | |
parent | 33e5971358c37851137b264f815977507c016fac [diff] |
NFC: Fix possible LLCP memory leak nfc_llcp_build_tlv() malloced the memory and should be free in nfc_llcp_build_gb() after used, and the same in the error handling case, otherwise it will cause memory leak. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>