Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Genrich <daniel.genrich@gmx.net>2008-07-11 21:08:45 +0400
committerDaniel Genrich <daniel.genrich@gmx.net>2008-07-11 21:08:45 +0400
commitefb2639a26d2dbbc11e2edc3b17c34646eade902 (patch)
tree101f92e04958f23e907d4ec7c2a60d1014af8ccb
parent3fce5ba59ad7ce7033ecf135e45ce768b7f81026 (diff)
Memory leak fix (found with Valgrind)
-rw-r--r--source/blender/blenlib/intern/storage.c1
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);
}