Fixing the fix: Sometimes, Valgrind sees memory leaks where noone is - especially with external used memory managers like in this case (and Python case)

This commit is contained in:
2008-07-12 22:11:26 +00:00
parent 572f1d88d2
commit 751aa3e121

View File

@@ -382,7 +382,6 @@ void BLI_adddirstrings()
pwuser = getpwuid(files[num].s.st_uid);
if ( pwuser ) {
strcpy(files[num].owner, pwuser->pw_name);
free(pwuser);
} else {
sprintf(files[num].owner, "%d", files[num].s.st_uid);
}