Skip to content

Commit

Permalink
fix: fix memory leaks when run with -H
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenttom authored and andikleen committed Aug 27, 2023
1 parent f8e8529 commit 8daaae3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions numactl.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ static void print_node_cpus(int node)
printf(" %d", i);
}
putchar('\n');

numa_free_cpumask(cpus);
}

static void hardware(void)
Expand Down

0 comments on commit 8daaae3

Please sign in to comment.