diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2008-07-11 18:11:55 +0400 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2008-07-11 18:11:55 +0400 |
commit | 3fce5ba59ad7ce7033ecf135e45ce768b7f81026 (patch) | |
tree | 53efff143ea8ce7dc2e4a0e877aec6d98f1ccd9a | |
parent | 2e144abfbdeed7f6011c47e36d5f8f514b1bcee7 (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.c | 1 |
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 |