[Bf-blender-cvs] [ffa14008ac9] blender-v3.4-release: Cleanup: fix compile error in leak detection utility
Jacques Lucke
noreply at git.blender.org
Tue Nov 15 12:42:05 CET 2022
Commit: ffa14008ac9ec5a1d49c9468e2693350be434992
Author: Jacques Lucke
Date: Tue Nov 15 12:41:55 2022 +0100
Branches: blender-v3.4-release
https://developer.blender.org/rBffa14008ac9ec5a1d49c9468e2693350be434992
Cleanup: fix compile error in leak detection utility
===================================================================
M source/blender/blenloader/intern/readfile.cc
===================================================================
diff --git a/source/blender/blenloader/intern/readfile.cc b/source/blender/blenloader/intern/readfile.cc
index 569798048f6..8bcfe27a388 100644
--- a/source/blender/blenloader/intern/readfile.cc
+++ b/source/blender/blenloader/intern/readfile.cc
@@ -3111,7 +3111,7 @@ static BHead *read_data_into_datamap(FileData *fd, BHead *bhead, const char *all
SDNA_Struct *sp = fd->filesdna->structs[bhead->SDNAnr];
allocname = fd->filesdna->types[sp->type];
size_t allocname_size = strlen(allocname) + 1;
- char *allocname_buf = malloc(allocname_size);
+ char *allocname_buf = static_cast<char *>(malloc(allocname_size));
memcpy(allocname_buf, allocname, allocname_size);
allocname = allocname_buf;
}
More information about the Bf-blender-cvs
mailing list