Browse Source

Do not free a constant string.

svn:r5527
Nick Mathewson 20 years ago
parent
commit
cf5facf3e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/util.c

+ 1 - 1
src/common/util.c

@@ -917,7 +917,7 @@ check_private_dir(const char *dirname, cpd_check_t check)
     char *process_ownername = NULL;
     char *process_ownername = NULL;
 
 
     pw = getpwuid(getuid());
     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);
     pw = getpwuid(st.st_uid);