Cleanup: replace unnecessary MEM_callocN calls

Use MEM_mallocN when memory is immediately copied over.
This commit is contained in:
2020-03-05 07:54:52 +11:00
parent a5c4a44df6
commit a297a6c444
10 changed files with 16 additions and 16 deletions

View File

@@ -121,7 +121,7 @@ void BKE_report(ReportList *reports, ReportType type, const char *_message)
report->typestr = BKE_report_type_str(type);
len = strlen(message);
message_alloc = MEM_callocN(sizeof(char) * (len + 1), "ReportMessage");
message_alloc = MEM_mallocN(sizeof(char) * (len + 1), "ReportMessage");
memcpy(message_alloc, message, sizeof(char) * (len + 1));
report->message = message_alloc;
report->len = len;