From 66783f3f7b3eb4d0c3bfaf4d069e62bf1e4f5174 Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Sun, 12 Jun 2022 16:44:17 +0200 Subject: Add comment that getpwuid() leaks memory --- colorize.c | 1 + 1 file changed, 1 insertion(+) diff --git a/colorize.c b/colorize.c index 16b2a12..4566112 100644 --- a/colorize.c +++ b/colorize.c @@ -588,6 +588,7 @@ conf_file_path (char **conf_file) perror ("getpwuid"); exit (EXIT_FAILURE); } + /* getpwuid() leaks memory */ size = strlen (passwd->pw_dir) + 1 + strlen (CONF_FILE) + 1; path = xmalloc (size); snprintf (path, size, "%s/%s", passwd->pw_dir, CONF_FILE); -- cgit v1.2.3