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 18:11:55 +0400
committerDaniel Genrich <daniel.genrich@gmx.net>2008-07-11 18:11:55 +0400
commit3fce5ba59ad7ce7033ecf135e45ce768b7f81026 (patch)
tree53efff143ea8ce7dc2e4a0e877aec6d98f1ccd9a
parent2e144abfbdeed7f6011c47e36d5f8f514b1bcee7 (diff)
Memory leak fix: br_find_exe() uses strdup() which uses malloc and therefore the returned string needs free'ing (Found with valgrind).
-rw-r--r--source/blender/blenlib/intern/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c
index 5a85fbfc375..48ebf770e1b 100644
--- a/source/blender/blenlib/intern/util.c
+++ b/source/blender/blenlib/intern/util.c
@@ -1722,6 +1722,7 @@ void BLI_where_am_i(char *fullname, const char *name)
path = br_find_exe( NULL );
if (path) {
strcpy(fullname, path);
+ free(path);
return;
}
#endif