Memory leak fix (found with Valgrind)
This commit is contained in:
parent
3fce5ba59a
commit
efb2639a26
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user