diff options
-rw-r--r-- | src/pinky.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pinky.c b/src/pinky.c index e6838ae69..500f70a8b 100644 --- a/src/pinky.c +++ b/src/pinky.c @@ -466,12 +466,14 @@ short_pinky (const char *filename, const int argc_names, char *const argv_names[]) { size_t n_users; - STRUCT_UTMP *utmp_buf; + STRUCT_UTMP *utmp_buf = NULL; if (read_utmp (filename, &n_users, &utmp_buf, 0) != 0) error (EXIT_FAILURE, errno, "%s", filename); scan_entries (n_users, utmp_buf, argc_names, argv_names); + + IF_LINT (free (utmp_buf)); } static void |