mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Do not free a constant string.
svn:r5527
This commit is contained in:
+1
-1
@@ -917,7 +917,7 @@ check_private_dir(const char *dirname, cpd_check_t check)
|
||||
char *process_ownername = NULL;
|
||||
|
||||
pw = getpwuid(getuid());
|
||||
process_ownername = pw ? tor_strdup(pw->pw_name) : "<unknown>";
|
||||
process_ownername = pw ? tor_strdup(pw->pw_name) : tor_strdup("<unknown>");
|
||||
|
||||
pw = getpwuid(st.st_uid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user