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 547547 std::string methodNameStr = tns::ToString (isolate, methodName);
548548 SEL selector = sel_registerName (methodNameStr.c_str ());
549549
550- TypeEncoding* typeEncoding = reinterpret_cast <TypeEncoding*>(malloc ((argsCount + 1 ) * sizeof (TypeEncoding)));
550+ TypeEncoding* typeEncoding = reinterpret_cast <TypeEncoding*>(calloc ((argsCount + 1 ), sizeof (TypeEncoding)));
551551 typeEncoding->type = returnType;
552552
553553 if (!paramsVal.IsEmpty () && paramsVal->IsArray ()) {
Original file line number Diff line number Diff line change 309309}
310310
311311const TypeEncoding* Interop::CreateEncoding (BinaryTypeEncodingType type) {
312- TypeEncoding* typeEncoding = reinterpret_cast <TypeEncoding*>(malloc ( sizeof (TypeEncoding)));
312+ TypeEncoding* typeEncoding = reinterpret_cast <TypeEncoding*>(calloc ( 1 , sizeof (TypeEncoding)));
313313 typeEncoding->type = type;
314314
315315 return typeEncoding;
You can’t perform that action at this time.
0 commit comments