Skip to content

Commit

Permalink
numactl: add va_end to usage function
Browse files Browse the repository at this point in the history
Fixes the following cppcheck:

  [numactl.c:104]: (error) va_list 'ap' was opened but not closed by va_end().

Signed-off-by: Sanskriti Sharma <sansharm@redhat.com>
  • Loading branch information
Sanskriti Sharma authored and andikleen committed Oct 10, 2018
1 parent 6385e88 commit a7ee1fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions numactl.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ void usage_msg(char *msg, ...)
vfprintf(stderr, msg, ap);
putchar('\n');
usage();
va_end(ap);
}

void show_physcpubind(void)
Expand Down

0 comments on commit a7ee1fc

Please sign in to comment.