File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 547
547
std::string methodNameStr = tns::ToString (isolate, methodName);
548
548
SEL selector = sel_registerName (methodNameStr.c_str ());
549
549
550
- TypeEncoding* typeEncoding = reinterpret_cast <TypeEncoding*>(malloc ((argsCount + 1 ) * sizeof (TypeEncoding)));
550
+ TypeEncoding* typeEncoding = reinterpret_cast <TypeEncoding*>(calloc ((argsCount + 1 ), sizeof (TypeEncoding)));
551
551
typeEncoding->type = returnType;
552
552
553
553
if (!paramsVal.IsEmpty () && paramsVal->IsArray ()) {
Original file line number Diff line number Diff line change 309
309
}
310
310
311
311
const TypeEncoding* Interop::CreateEncoding (BinaryTypeEncodingType type) {
312
- TypeEncoding* typeEncoding = reinterpret_cast <TypeEncoding*>(malloc ( sizeof (TypeEncoding)));
312
+ TypeEncoding* typeEncoding = reinterpret_cast <TypeEncoding*>(calloc ( 1 , sizeof (TypeEncoding)));
313
313
typeEncoding->type = type;
314
314
315
315
return typeEncoding;
You can’t perform that action at this time.
0 commit comments