Memory leak fix (found with Valgrind)

This commit is contained in:
Daniel Genrich 2008-07-11 17:08:45 +00:00
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);
}