Memory leak fix (found with Valgrind)
This commit is contained in:
@@ -382,6 +382,7 @@ 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user