From: George Dunlap Date: Thu, 25 Feb 2016 14:48:56 +0000 (+0000) Subject: tools/xenalyze: Close symbol_file after reading it X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ef67f9e9f5ec156bbd92d1f3c062c318446c0f9c;p=people%2Fliuw%2Fxen.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 */