diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2008-07-11 21:08:45 +0400 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2008-07-11 21:08:45 +0400 |
commit | efb2639a26d2dbbc11e2edc3b17c34646eade902 (patch) | |
tree | 101f92e04958f23e907d4ec7c2a60d1014af8ccb /source/blender/blenlib/intern/storage.c | |
parent | 3fce5ba59ad7ce7033ecf135e45ce768b7f81026 (diff) |
Memory leak fix (found with Valgrind)
Diffstat (limited to 'source/blender/blenlib/intern/storage.c')
-rw-r--r-- | source/blender/blenlib/intern/storage.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c index ca7a376d3a2..fbcc56ac21d 100644 --- a/source/blender/blenlib/intern/storage.c +++ b/source/blender/blenlib/intern/storage.c @@ -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); } |