]> git.refcnt.org Git - colorize.git/commitdiff
Add comment that getpwuid() leaks memory
authorSteven Schubiger <stsc@refcnt.org>
Sun, 12 Jun 2022 14:44:17 +0000 (16:44 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Sun, 12 Jun 2022 14:44:17 +0000 (16:44 +0200)
colorize.c

index 16b2a12925dcefc016aaadb7b9abcbb947af1990..456611223623f182106f63278ffc914778701d0c 100644 (file)
@@ -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);