Преглед на файлове

Do not free a constant string.

svn:r5527
Nick Mathewson преди 20 години
родител
ревизия
cf5facf3e1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;
 
     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);