From: George Dunlap Date: Thu, 25 Feb 2016 14:48:56 +0000 (+0000) Subject: tools/xenalyze: Close symbol_file after reading it X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1635 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fb579942018fafcf8c6cec04d116b9a4c5e990cd;p=xen.git tools/xenalyze: Close symbol_file after reading it ...to avoid leaking the FD and associated memory. CID 1306872 Signed-off-by: George Dunlap Acked-by: Ian Jackson --- diff --git a/tools/xentrace/xenalyze.c b/tools/xentrace/xenalyze.c index 1651302099..3c90a0f5d7 100644 --- a/tools/xentrace/xenalyze.c +++ b/tools/xentrace/xenalyze.c @@ -363,6 +363,8 @@ void parse_symbol_file(char *fn) { p=&((*p)->next); } } + + fclose(symbol_file); } /* WARNING not thread safe */