Fixing the fix: Sometimes, Valgrind sees memory leaks where noone is - especially...
authorDaniel Genrich <daniel.genrich@gmx.net>
Sat, 12 Jul 2008 22:11:26 +0000 (22:11 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Sat, 12 Jul 2008 22:11:26 +0000 (22:11 +0000)
source/blender/blenlib/intern/storage.c

index fbcc56ac21d69cd289de6d3e26080cd1d2a2b0d9..ca7a376d3a2bc96235d1f48e05e183022cbe68ff 100644 (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);
             }