From: Erik van der Kouwe Date: Fri, 31 Aug 2012 18:12:57 +0000 (+0200) Subject: Two frees to appease Coverity X-Git-Tag: v3.2.1~349 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/migration?a=commitdiff_plain;h=2a0e9af32fe751c50ae53f429dd0679f16c67ef2;p=minix.git Two frees to appease Coverity --- diff --git a/commands/sprofalyze/sprofalyze.c b/commands/sprofalyze/sprofalyze.c index bc49f2b1a..5f3d04506 100755 --- a/commands/sprofalyze/sprofalyze.c +++ b/commands/sprofalyze/sprofalyze.c @@ -346,6 +346,7 @@ static void binary_load_pc_map(struct binary_info *binary_info) { perror("failed to start " NM); exit(-1); } + free(command); /* read symbols from nm output */ assert(!binary_info->symbols); diff --git a/commands/sprofdiff/sprofdiff.c b/commands/sprofdiff/sprofdiff.c index fc9bb70dd..9232a089e 100755 --- a/commands/sprofdiff/sprofdiff.c +++ b/commands/sprofdiff/sprofdiff.c @@ -236,6 +236,7 @@ static void print_report(void) { printf(" * p < 0.05\n"); printf(" ** p < 0.01\n"); printf(" *** p < 0.001\n"); + free(symbol_list); } static void print_report_line(const struct symbol_info *symbol) {