From cf5facf3e147dab548f46ed479f763ea1f771a7d Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 8 Dec 2005 04:01:37 +0000 Subject: [PATCH] Do not free a constant string. svn:r5527 --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/util.c b/src/common/util.c index 7baf6643dc..96155e68cb 100644 --- a/src/common/util.c +++ b/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) : ""; + process_ownername = pw ? tor_strdup(pw->pw_name) : tor_strdup(""); pw = getpwuid(st.st_uid); -- 2.11.4.GIT