diff options
author | Steven Schubiger <stsc@refcnt.org> | 2022-06-12 16:44:17 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2022-06-12 16:44:17 +0200 |
commit | 66783f3f7b3eb4d0c3bfaf4d069e62bf1e4f5174 (patch) | |
tree | ab69da8cae5fc4e80a9285ea4bfd368336e007fb /colorize.c | |
parent | 68668ded3a92f4b04bfd387c701faea8a1964abc (diff) | |
download | colorize-66783f3f7b3eb4d0c3bfaf4d069e62bf1e4f5174.tar.gz colorize-66783f3f7b3eb4d0c3bfaf4d069e62bf1e4f5174.tar.bz2 |
Add comment that getpwuid() leaks memory
Diffstat (limited to 'colorize.c')
-rw-r--r-- | colorize.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |