scripts/mod/modpost.c: fix memory leak
authorAlexey Fomenko <ext-alexey.fomenko@nokia.com>
Tue, 10 Aug 2010 00:20:24 +0000 (17:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Aug 2010 03:45:05 +0000 (20:45 -0700)
commit37ed19d5cce35a40d3913cf9aa208ce9f60db3d7
treea4e3363f5a4c059330372b2f686112bfee6364b2
parente269b085175acf03fc687a7416b9fd84aa9c6c23
scripts/mod/modpost.c: fix memory leak

sec2annotation returns malloc'ed buffer directly to printf as an argument.
 Free this buffer after printing.

Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com>
Cc: Trevor Keith <tsrk@tsrk.net>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/mod/modpost.c