]> Zhao Yanbai Git Server - minix.git/commitdiff
Two frees to appease Coverity
authorErik van der Kouwe <erik@minix3.org>
Fri, 31 Aug 2012 18:12:57 +0000 (20:12 +0200)
committerErik van der Kouwe <erik@minix3.org>
Fri, 31 Aug 2012 18:12:57 +0000 (20:12 +0200)
commands/sprofalyze/sprofalyze.c
commands/sprofdiff/sprofdiff.c

index bc49f2b1a988d5f489f956fbf73936c9ce255149..5f3d0450685102c3686c9a9f2faba5fa436087dc 100755 (executable)
@@ -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);
index fc9bb70dd5137f25c745725a73deaaab117f28f3..9232a089ee142141c7fe97f6003aa5ac59b81878 100755 (executable)
@@ -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) {